This topic has 4 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #140120
     Jan
    Participant

    How to add the “Theme General Settings”, Before Content, After Content, Page Attributes to custom post types?

    I installed the Hero Knowledgebase Plugin (https://herothemes.com) and would like to be able to control the page rendering in the same way as for post/pages. For instance:

     

    • The Title of each article is apparently switched off / invisible. I would like to switch it on.
    • I need Before and After Content Boxes
    • Ideally, the Sidebar Field (which is visible) would be set to a certain value for new posts
    Attachments:
    You must be logged in to view attached files.
    #140226
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

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

    Always happy to help you 🙂

    #140348
     Radu
    Moderator

    Hi,

    Add this function to wp-content/thems/kleo-child/function.php

    COPY CODE
    
    // Add Theme Settings to CPT //
    // Replace yourCPTslug with your CPT slug //
    function my_cpt_sq_metabox_general_settings($post_types) {
    
        $post_types[] = 'yourCPTslug';
        return $post_types;
    }
    
    add_filter('sq_metabox_general_settings', 'my_cpt_sq_metabox_general_settings');
    

    Replace yourCPTslug with your cpt slug

    Cheers
    R.

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

    Perfect, thanks a lot!
    Cheers, Jan

    #140532
     Radu
    Moderator

    You’re welcome

    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 5 posts - 1 through 5 (of 5 total)

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

Log in with your credentials

Forgot your details?