Archived

This topic is now archived and is closed to further replies.

  • 0

Add button to branding header/social icons

Question

Posted · Report post

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

4 answers to this question

Posted · Report post

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

}

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

Hi again

You add the code at "functions.php"

Be careful, please read this and see this video.

http://www.pagelines...ustomize_Plugin

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites