This topic has 2 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #185946
     bingoenvato
    Participant

    I have a CPT, to which I want to add a custom side bar:

    • add_action( ‘widgets_init’, ‘my_sidebars’ );
    •  function my_sidebars() {
    •     /* This function registers the Sidebar */
    •     register_sidebar(
    •       array (
    •            ‘name’ => __( ‘Bullishow Sidebar’ ),
    •            ‘id’ => ‘bullishow-sidebar’,
    •            ‘description’ => __( ‘Sidebar für Post und Archiv.’ ),
    •            ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    •            ‘after_widget’ => ‘</div>’,
    •            ‘before_title’ => ‘<h3 class=”widgettitle”>’,
    •            ‘after_title’ => ‘</h3>’
    •       )
    •     );
    •  }

    Is there an hook to add this to CPT template?

    #185993
     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 🙂

    #186062
     Radu
    Moderator

    Hi,

    follow this guide : http://crunchify.com/how-to-add-custom-sidebar-for-custom-post-type-cpt-in-wordpress/

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?