-
Author
-
January 13, 2019 at 13:23 #216485davidcoParticipant
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
January 13, 2019 at 13:33 #216486Kieran_SQModeratorHi,
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 solutionIf 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.
January 13, 2019 at 13:42 #216487davidcoParticipantThank 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->libJanuary 13, 2019 at 13:44 #216488Kieran_SQModeratorHi,
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 solutionIf 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.
January 13, 2019 at 13:49 #216490Kieran_SQModeratorHi,
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 solutionIf 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.
January 13, 2019 at 13:53 #216491davidcoParticipantattached image and yes.
Attachments:
You must be logged in to view attached files.January 13, 2019 at 13:58 #216494Kieran_SQModeratorHi,
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 solutionIf 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.
January 13, 2019 at 14:06 #216496davidcoParticipantnothing 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.January 13, 2019 at 14:23 #216497Kieran_SQModeratorHi,
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 solutionIf 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.
January 14, 2019 at 21:17 #216569RaduModeratorHi,
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 solutionJanuary 15, 2019 at 16:07 #216615RaduModeratorHi,
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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 15, 2019 at 18:28 #216623davidcoParticipantThanks.
Question, Is will not erase on the next update?January 16, 2019 at 14:22 #216672RaduModeratorHi,
Not because we will include in the theme update exactly that file with the if ! class_exists and if ! function_exists checks.
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.