Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #350681

    Hej suport
    any suggestion for having : linkedin follow button in header . ?

    #351024

    Hey mikeandrewfischer!

    Grab the code for your button from this page, https://developer.linkedin.com/plugins.

    And then add it right after line 93 in /enfold/includes/helper-main-menu.php.

    <div class='inner-container'>
    

    Cheers!
    Elliott

    • This reply was modified 9 years, 5 months ago by Elliott.
    #351168

    Thanks Eliott-
    for the fast response – we talk theme editor – and right after : ?

    * Hook that can be used for plugins and theme extensions
    */
    do_action(‘ava_after_main_menu’);
    ?>

    <!– end inner-container–>
    </div>

    <!– end container–>
    </div>

    <!– end container_wrap–>
    </div>

    <div class=’header_bg’></div>

    <!– end header –>
    </header>

    can’t see
    <div class=’inner-container’>

    there
    regards Mike

    #351169

    Hej again is after here?
    <div class=’container’>

    <div class=’inner-container’>

    #351463

    Hi!

    Yes, right after line 93.

    <div class='inner-container'>
    your code goes here
    

    Cheers!
    Elliott

    #351782

    Hej Elliott, i got the follow button up – but that messed the hole layout of the header up.
    It behaves like it needs a hole line of space for its self . I just wanted it to be set beside the top menu.
    Is that possible?

    #352019

    Hi!

    Instead of editing the file, you can add this on functions.php:

    add_action('ava_main_header', 'ava_main_header_addition');
    function ava_main_header_addition() {
    	// PLACE YOUR CODE HERE
    }
    

    Best regards,
    Ismael

    #352043

    may be not understood right or not the right solution –
    but after setting your code into enfold functions php i have a site down and :
    Parse error: syntax error, unexpected T_FUNCTION in /var/www/graintec.dk/public_html/wp-content/themes/enfold/functions-enfold.php on line 1264

    #352439

    Hi!

    You should add the code on functions.php. What is the code that you use for the linkedin button?

    Regards,
    Ismael

    #352540
    This reply has been marked as private.
    #353087

    Hey!

    It should be added on Theme Functions (functions.php) file NOT functions-enfold.php file. Replace the code with this:

    add_action('ava_main_header', 'ava_main_header_addition');
    function ava_main_header_addition() {
    $output  = "<script src='//platform.linkedin.com/in.js' type='text/javascript'>lang: en_US</script>";
    $output .= "<script type='IN/FollowCompany' data-id='495891' data-counter='none'></script>";
    echo $output;
    }

    Regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.