Jump to content
Sign in to follow this  
boonem311

Add button to branding header/social icons

Recommended Posts

boonem311    0
boonem311

Hi, All ----

My site is bilingual in French and English. I would like to add a small button/link next to

my social icons that will either say "EN" for English - or I'll simply include the whole word

"English." But I would like for it (the button) to be the same height and appear next to the

social icons, with equal padding.

I have added the Bootstrap Shortcode plugin and would like to use the following:

[TBS_BUTTON class="btn-mini btn-default" element="a" link="http://sinfoniettaparis.org/?page_id=946" title="SPCO Homepage 2"]English[/TBS_BUTTON]

Can someone please where and how I should place the code? What else do I need to

add in order to have the button appear along side the social icons?

I am using Pagelines 2.2 framework.

www.sinfoniettaparis.org

Thanks!

Michael

Share this post


Link to post
Share on other sites
batman    389
batman

Hi Michael

You can add an action for add a button

Some comment give the action: 'pagelines_branding_icons_start'or 'pagelines_branding_icons_end' or 'pagelines_before_branding_icons' or 'pagelines_after_branding_icons'

You can find at

http://api.pagelines.com/hooks

You can see this links to begin:

http://www.pagelines...ustomize_Plugin

http://codex.wordpress.org/Plugin_API

Here and example


add_action('pagelines_branding_icons_start', 'add_button');

function add_button() {

?>

<a class="btn btn-mini btn-default" href="http://sinfoniettaparis.org/?page_id=946">English</a>

<?php

}


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
boonem311    0
boonem311

Hi B-man,

Okay - thank you. I've added and activated my Pagelines Customize plugin. So where do I add the code that you include

above? In the style.css or functions.php file? Or can I add this code to the Custom Code section?

Thanks!

Share this post


Link to post
Share on other sites
Rob    547
Rob

Batman is correct. A hook via pageLines-customize/functions.php is the proper method to accomplish your goals.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×