-
-
Hello,
I have a testimonial plugin that is already in use and I would like to deregister the testimonials custom post type. Would you mind providing the code that I can add to my child theme to remove it?
Thank you.
-
Hello,
Please go to file includes\core\codeless_elements.php and add these lines at the beginning of the file:
vc_remove_element("vc_single_testionial"); vc_remove_element("vc_testimonial_cycle"); vc_remove_element("vc_testimoniual_carousel");
Now, at the same file find and remove these lines: https://codeshare.io/YRVHj
Best regards!
-
Thank you for providing those code changes, however it looks like the testimonial menu still appears after I have modified the file.
Additionally, will I be able to add this file under tower-child/includes/core, as I don’t want to have to make this adjustment after each release?
-
Hello,
You must have made a mistake, it does remove the testimonials elements in our side. Send us your ftp credentials in a private reply so we can do it for you.
Yes, it is possible to add the edited file under tower-child/includes/core.Best regards!
-
-
Hello,
I can’t access the site files via ftp, it says: “530 Login authentication failed”. Also this is what i get from the wordpress side:screenshot.
Please upload this file into your wp-content\themes\tower-child\includes\core\,
codeless_elements.php
It has the changes done already. VC panel preview.
Let us know.Best regards!
-
-
Hello,
To unregister the testimonial post type, edit the file functions.php,
find the line:require_once( get_template_directory().'/includes/types/codeless_testimonial_type.php' );
and remove it or comment it out.
If you want to remove also the file go to includes/types/codeless_testimonial_type.php and delete the file.Best regards!
-
Thank you Ruco.
I would like to deregister codeless_testimonial_type.php from the child theme. I’ve done this for front side scripts, but I am not sure how to do this for the admin panel. How would I go about doing that?
-
Hello,
If you disable it on parent theme, it will be disabled on child theme, as the child inherits scripts from the parent.
What files have you copied at child theme?
Best regards!
-
My reasoning for disabling it within the child theme is so that when the parent theme files are updated, it does not overwrite my changes.
-
How would I go about disabling this via the child theme folder? I tried copying the changed files for the parent theme over to the child theme, but that did not work.
-
Hello,
Sorry for the late reply.
We tested this as well, but is not possible to reflect these changes only to child theme. You have to make it to the parent theme.Best regards!
-
You must be logged in to reply to this topic.