-
AuthorPosts
-
November 13, 2014 at 4:10 pm #350681
Hej suport
any suggestion for having : linkedin follow button in header . ?November 14, 2014 at 12:36 am #351024Hey 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 10 years, 1 month ago by Elliott.
November 14, 2014 at 9:22 am #351168Thanks 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 MikeNovember 14, 2014 at 9:24 am #351169Hej again is after here?
<div class=’container’><div class=’inner-container’>
November 14, 2014 at 7:33 pm #351463Hi!
Yes, right after line 93.
<div class='inner-container'> your code goes here
Cheers!
ElliottNovember 15, 2014 at 11:56 am #351782Hej 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?November 16, 2014 at 3:37 pm #352019Hi!
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,
IsmaelNovember 16, 2014 at 4:40 pm #352043may 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 1264November 17, 2014 at 3:00 pm #352439Hi!
You should add the code on functions.php. What is the code that you use for the linkedin button?
Regards,
IsmaelNovember 17, 2014 at 5:08 pm #352540This reply has been marked as private.November 18, 2014 at 5:25 pm #353087Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.