This topic has 10 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #208341
     lusien
    Participant

    Hello,

    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.

     

    #208405
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #208569
     Radu
    Moderator

    Hi,

    Check this article : https://archived.seventhqueen.com/sweetdate/article/add-like-button-to-top-bar-with-code-snippet

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #208603
     lusien
    Participant

    Hi 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.
    #208696
     Radu
    Moderator

    That’s great, i will correct right now the issue, i had done quick… sorry for that.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #208752
     lusien
    Participant

    Thanks 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.

    #208821
     Radu
    Moderator

    Hi,

    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
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #208901
     lusien
    Participant

    Hi 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.

    #208912
     Radu
    Moderator

    yes 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 solution
    #209224
     lusien
    Participant

    Hi 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.
    #209311
     Radu
    Moderator

    Great
    Sometimes encodes wired the quotes
    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?