-
AuthorPosts
-
November 17, 2016 at 2:17 pm #713573
Hi,
Is it possible to add plain text at the top bar in both right og left side at the same time?
Best regards,
Helle ØstergaardNovember 18, 2016 at 6:07 am #713842Hey GraphicEyeDK,
Did you try filling out your text into the Phone Number or small info text field? If that is not what you are looking to do you could try adding a widget area to the header: http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
Best regards,
RikardNovember 18, 2016 at 9:35 am #713894Hey Rikard,
Yes, that I already have done and chosen “Display in top bar at the right”. But now I also what to add same text in the left side of the top bar. Is that possible?
Best regards,
Helle ØstergaardNovember 21, 2016 at 2:20 pm #714811Hi!
I think that would be possible by using custom js scripts, can you post the link to the page mentioned? and can you tell us what you need to duplicate and put on the other end?
Cheers!
NikkoNovember 22, 2016 at 10:14 am #715184Hi Nikko,
Here’s the link to the page: http://www.myredbag.dk/forside
And this is have I want it to look: http://www.myredbag.dk/wp-content/uploads/2016/11/Screenshot_facebook.jpgCheers!
HelleNovember 23, 2016 at 11:41 am #715839Hey!
Can you post here or in pastebin the facebook code?
Regards,
NikkoNovember 23, 2016 at 11:50 am #715855What means “pastebin”?
Best regards,
HelleNovember 23, 2016 at 12:20 pm #715871Hey!
It’s just an online paste tool where you can paste in your code, we usually use it when posting long codes. Here is the link to pastebin: http://pastebin.com/index.php
Best regards,
NikkoNovember 25, 2016 at 9:16 am #716727Hi,
I’m not sure which code you are asking for?
Best regards,
HelleNovember 25, 2016 at 10:25 am #716741Hi!
The one in the screenshot you provided has the facebook button, which I think is generated by some facebook code. This is the code I’d like to give but might need to be modified a bit to make it run smoothly when some codes are added but if it’s just html text then it won’t have any problem. Just add this to functions.php:
function add_custom_header_script(){ ?> <script type="text/javascript"> (function($){ function insert_to_header() { jQuery("<span>Your Code Here</span>").insertAfter(jQuery("#header_meta").find(".social_bookmarks")); } insert_to_header(); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_header_script');
Just replace Your Code Here, if you’re not sure just post the facebook code and I’ll adjust the script based on that.
Cheers!
NikkoNovember 25, 2016 at 3:54 pm #716906Hi Nikko (hope it’s you how is replying me),
The facebook like box I just added in Photoshop to show how I wanted it to look, so there is no code for it. But in another topic (named Social Media icon) I have been recommended this link to generate a code: https://developers.facebook.com/docs/plugins/page-plugin but there have been some problems to make it work. I’m sorry the two topic eventually has come to be about the same issue. Maybe they should be merged.
Best reagrds,
HelleNovember 26, 2016 at 7:32 pm #717249Hey Helle,
Yes, it’s me who’s replying :)
I have added this code in header.php after the < body > tag:
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
And have added this code in functions.php:
function add_custom_header_script(){ ?> <script type="text/javascript"> (function($){ function insert_to_header() { jQuery('<div class="fb-like" data-href="https://facebook.com/mywebsite.com" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>').insertAfter(jQuery("#header_meta").find(".social_bookmarks")); } insert_to_header(); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_header_script');
I have added this style to Quick CSS (located in Enfold > General Styling):
#header_meta .fb-like.fb_iframe_widget { margin-left: 10px; }
I have checked it and it seems to be good. Let us know your feedback :)
Regards,
Nikko- This reply was modified 7 years, 11 months ago by Nikko. Reason: hide website name
November 26, 2016 at 8:00 pm #717252Hey Nikko,
Thank you very, very much. I’m so happy :-). It’s really great now.
Only thing I want to change now is translating “Like” to danish. Do I just have to change the code: data-action=”like”?I am so grateful for all your help.
Have a nice weekend.Best regards,
HelleNovember 26, 2016 at 8:12 pm #717255Hey!
You’re welcome, I’m not really sure about that since facebook description is this:
The verb to display on the button. Can be either like or recommend
For more information refer to this https://developers.facebook.com/docs/plugins/like-button but maybe it’s worth a try :)I apologize for some of the delays but we’d like to thank you for using Enfold and for your patience :)
Regards,
NikkoNovember 27, 2016 at 11:42 am #717413Hey Nikko,
By following your link I could choose danish, generat a code and then see where to change the code you had added. So now it is in danish :-)
Once more, thank you very much for all your help.
Regards,
HelleNovember 27, 2016 at 2:45 pm #717428Hi Helle,
You’re very much welcome :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Top bar’ is closed to new replies.