Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Removing Testimonials

custom post typesderegister
    • 9 years, 7 months ago rmiller
      Participant

      Expired

      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.

    • 9 years, 7 months ago Mirela
      Participant

      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!

    • 9 years, 7 months ago rmiller
      Participant

      Expired

      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?

    • 9 years, 7 months ago Mirela
      Participant

      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!

    • 9 years, 7 months ago rmiller
      Participant

      Expired

      This reply has been marked as private.
    • 9 years, 7 months ago Mirela
      Participant

      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!

    • 9 years, 7 months ago rmiller
      Participant

      Expired

      This reply has been marked as private.
    • 9 years, 7 months ago Ruco
      Keymaster

      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!

    • 9 years, 7 months ago rmiller
      Participant

      Expired

      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?

    • 9 years, 7 months ago Ruco
      Keymaster

      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!

    • 9 years, 7 months ago rmiller
      Participant

      Expired

      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.

    • 9 years, 6 months ago rmiller
      Participant

      Expired

      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.

    • 9 years, 6 months ago Mirela
      Participant

      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!

Viewing 12 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password