This topic has 10 replies, 2 voices, and was last updated 7 years by Saskia.

  • Author
  • #172537
     Saskia
    Participant
    Hello,
    Thank you for your theme I love it. I use it here: http://www.dutchcyclinginlondon.com
    I can’t find the location of the template in which php template the share links part appears (see for instance http://www.dutchcyclinginlondon.com/discover at the bottom)
    Apparently it is not in ‘post-social-share’ because when I modify this, it doesn’t change anything.
    Could you please indicate me where it is? Could you also let me know what the ‘post-social-share’ php template refers to?
    I would like to change ‘Share this’ to ‘Like or share this’.
    Thank you very much
    Kind regards,
    Saskia
    #172538
     Kieran_SQ
    Moderator

    Hi,

    Thanks for reaching out and really glad to hear you’re liking the theme!

    To edit the Share feature you’ll need to copy the below file to your KLEO Child theme and edit line 52 for the “Share this” text.

    /kleo/page-parts/posts-social-share.php

    If this is the file you have been editing could you please share the contents of the file via HasteBin https://hastebin.com/ with me.

    You may also want to disable or clear caching and any services like CloudFlare or MaxCDN to see changes.

    Let me know if this helps,

    Kieran.

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #172539
     Saskia
    Participant

    Hello Kieran,

    Indeed this is the file I have modified.
    Even when I remove the whole file from kleo and kleo-child, the functionality still works on my different devices.

    I’ve pasted the content in hastebin. How can I share it with you?

    Best,
    Saskia

    #172540
     Kieran_SQ
    Moderator

    Hi,

    You can press save in the top right, it will change the URL, if you copy and paste that it should work fine.

    Thanks,

    Kieran.

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #172542
     Saskia
    Participant

    Thanks, I have!

    #172543
     Kieran_SQ
    Moderator

    Hi,

    Can you share the generated HasteBin URL with me please so I can look at the code?

    Thanks,

    Kieran.

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #172544
     Saskia
    Participant
    #172545
     Kieran_SQ
    Moderator

    Hmmm, seems to be fine, could you supply me with admin credentials for the site and an FTP screenshot of your KLEO Child theme folder?

    Thanks,

    Kieran.

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #172551
     Saskia
    Participant
    This reply has been set as private.
    #172617
     Kieran_SQ
    Moderator

    Hi,

    Please try the below snippet in your KLEO Child theme’s functions.php file

    COPY CODE
    // Translate Share this single phrase
    add_filter('gettext', 'translate_reply');
    add_filter('ngettext', 'translate_reply');
    function translate_reply($translated) {
    $translated = str_ireplace('Share this', 'Like and share this', $translated);
    return $translated;
    }

    I have tried this out locally and it does work for me, if this doesn’t work for you we may be looking at a conflict of some kind.

    Hope this helps,

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #172645
     Saskia
    Participant

    Thank you very much!
    It works!

Viewing 11 posts - 1 through 11 (of 11 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?