-
Author
-
September 3, 2018 at 17:49 #208341
lusien
ParticipantHello,
I have found a very interesting post (/seventhqueen.com/support/kleo/article/add-like-button-menu) where the code to add the FB Like button on the menu has been provided. This works with no issue. I was wondering what would be the change that needs to be done to have the Like button on the top social bar instead of the menu.
Thanks for your help.
September 4, 2018 at 11:41 #208405Laura
ModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 5, 2018 at 16:09 #208569Radu
ModeratorHi,
Check this article : https://archived.seventhqueen.com/sweetdate/article/add-like-button-to-top-bar-with-code-snippet
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 5, 2018 at 20:53 #208603lusien
ParticipantHi Radu,
Thanks. Please be aware I have found a small mistake in the code you provided. The last function does not contain the correct function name:
add_action(‘kleo_before_top_links’,’add_fb_button_top_social’);
should be
add_action(‘kleo_before_top_links’,’sqr_add_fb_button_top_social’);
In addition, can I add this Like button at the end of the top social bar? Otherwise it look when you have contact information enabled a little bit to close to this (see picture).
As always, your help is appreciated.
Attachments:
You must be logged in to view attached files.September 6, 2018 at 16:20 #208696Radu
ModeratorThat’s great, i will correct right now the issue, i had done quick… sorry for that.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 6, 2018 at 19:55 #208752lusien
ParticipantThanks Radu, I think you missed my picture and other question: can I add this Like button at the end of the top social bar? Otherwise it looks a little bit too closed to the contact information when this is enabled (see picture attached previously). Or at least bring some space in between.
Regards.
September 7, 2018 at 16:31 #208821Radu
ModeratorHi,
Sorry…use this action instead
add_action(‘kleo_extra_social_icons’,’sqr_add_fb_button_top_social’);
Comment the old one for later use and paste this one. The button will be rendered at the end.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 7, 2018 at 21:36 #208901lusien
ParticipantHi Radu,
Thanks, but the last code provided it does not work. Did you try it? Not sure where the button is but it does not show anymore.
Thanks for checking this one more time.
Have a good weekend.
September 7, 2018 at 21:50 #208912Radu
Moderatoryes i had tried and it puts at the end in very right
code : https://pastebin.com/raw/Bad7CQ2n
If you have cache or something purge it
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 10, 2018 at 19:39 #209224lusien
ParticipantHi Radu,
Indeed it works and I found the mistake. When I copied and paste the line from your previous post it was wrongly taken by my editor: the add_action method took ‘ instead ‘ when referring to the function.
But once this has been corrected I can see same output as above.
Thanks for the help.
Attachments:
You must be logged in to view attached files.September 11, 2018 at 18:13 #209311Radu
ModeratorGreat
Sometimes encodes wired the quotes
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.