This topic has 15 replies, 3 voices, and was last updated 5 years by Radu.

  • Author
  • #216485
     davidco
    Participant

    Hello,

    I have 2 questions,

    I want to show “kleo love” to all the users, but only allow to logged in users to press on it, do you have a solution for that?

    I made some changes on Kleo ->lib -> item-likes.php to implement what I ask before, where do i need to save the file in  kleo-child for it to work.

    Thanks

    #216486
     Kieran_SQ
    Moderator

    Hi,

    You should copy the exact structure from the KLEO theme to the KLEO Child theme. For example the file you referenced is

    /kleo/lib/item-likes.php

    And so the file you changed in KLEO Child should have the structure of

    /kleo-child/lib/item-likes.php

    As the /lib/ directory does not exist by default in the KLEO Child theme you will need to create this yourself.

    I do not have a solution to hand that meets your logged in / logged out requirement for post likes and would take some time to implement for you. This work would be classed as custom development as it falls outside the scope of support we offer via the forum. You can email dev@seventhqueen.com if you wish to discuss your custom needs further and one of our developers will be happy to help.

    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.

    #216487
     davidco
    Participant

    Thank you for your quick reply.
    I tried your solution before asking you for help but the wp go to kleo->lib not to kleo-child->lib

    #216488
     Kieran_SQ
    Moderator

    Hi,

    Can you share access to your site, in a private reply, so I can take a look at the files in the child theme.

    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.

    #216489
     davidco
    Participant

    it’s on my computer.

    #216490
     Kieran_SQ
    Moderator

    Hi,

    Can you share screenshots then of your /kleo-child/ file structure please?

    Also, to confirm, you have purged all of your caches to ensure you’re receiving the latest versions of the content in your browser?

    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.

    #216491
     davidco
    Participant

    attached image and yes.

    Attachments:
    You must be logged in to view attached files.
    #216494
     Kieran_SQ
    Moderator

    Hi,

    If you strip everything from the item-likes.php file except for the opening PHP tag what happens? Making sure to to purge browser cache when testing again (Ctrl+F5).

    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.

    #216496
     davidco
    Participant

    nothing happens wp go to kleo not to the child.
    I’ve made some changes before on your theme and put it on the child and it’s working great accept that.
    when I do chang to kleo/lib/item-likes.php is still affects the site.

    #216497
     Kieran_SQ
    Moderator

    Hi,

    I will refer this ticket to a higher level of support for review. They’ll be in touch with you as soon as they can, Monday to Friday, East European Time.

    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.

    #216498
     davidco
    Participant

    OK thanks

    #216569
     Radu
    Moderator

    Hi,

    I will ask the core developer for a solution to can overwrite the file into child.

    It seems the files from lib to cannot be overwritten.

    Cheers
    R.

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

    Thanks, I’ll wait for an answer.

    #216615
     Radu
    Moderator

    Hi,

    Please replace this file content : wp-content/themes/kleo/lib/item-likes.php

    With this file content : https://pastebin.com/raw/f27wrJh3

    Then you can rewrite the classes and the function from the file by copying all the code (where it’s wrapped into if ! function exists or if ! class_exists) into functions.php from child

    Cheers
    R

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

    Thanks.
    Question, Is will not erase on the next update?

    #216672
     Radu
    Moderator

    Hi,

    Not because we will include in the theme update exactly that file with the if ! class_exists and if ! function_exists checks.
    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 16 posts - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?