is it possible to have the sidebar appear on only specific blog posts ?

  • Anonymous


    is it possible to have the sidebar appear on only specific blog posts ? and how ?

    Thank you for your help


    Syahir Hakim


    Use the Widget Logic plugin.



    I downloaded the widget, BUT It does not show the sidebar I want at all on the page when I selected it to. I assume this is because I chose the wide display in to Graphene Options –> Display –> Column Options and select the first column mode there. so do I have to choose 2 column mode?

    Does that mean I have to select the sidebar option and then click all the categories I don’t want the sidebar to show up and leave the one I do unchecked ? Is all that work required ? wont it show a blank space with no sidebar if I do that on the page I click hide?


    Syahir Hakim


    For individual pages, you can select the page template you want use. Look to the right of the Edit Page screen.



    for pages yes and I see it on the right hand side but I cant find that option for posts or categories




    I am reading this on the sidebar box of my posts page


    because right now it says “This theme has no available custom post templates.”

    does that mean I have to add code to my theme template files ?


    Syahir Hakim


    OK, just copy each of the theme’s page templates (the ones whose names start with template-...) into your child theme. Rename those copied files in the child theme so that they don’t share the same name as the theme’s template files. Simply appending -post to the filenames will do.

    And then, open each file and replace:

    Template Name:


    Template Name Posts:



    ok I renamed the newly added child theme template php files by adding “posts template” to the name. but I cant find where to replace template name to template name posts when I open the file? this is one of theme as an example…

    * The author template file. <
    do I change it here?
    * @package Graphene
    * @since Graphene 1.0

    get_header(); ?>

    /* Queue the first post, that way we know who
    * the author is when we try to get their name,
    * URL, description, avatar, etc.
    * We reset this later so we can run the loop
    * properly with a call to rewind_posts().
    if ( have_posts() ) { the_post(); }

    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-index.php and that will be used instead.
    get_template_part( 'loop', 'author' );

    <?php do_action( 'graphene_before_authorpostlist' ); ?>

    <h3 class="author-post-list"><?php _e("Author's posts listings", 'graphene'); ?></h3>
    /* Start the loop again to list all of the author's posts with excerpt */

    while ( have_posts() ) {
    get_template_part( 'loop', 'archive' );

    /* Posts navigation. */

    <?php do_action('graphene_after_authorpostlist'); ?>

    <?php get_footer(); ?>

    Syahir Hakim


    Read my last post again.

Viewing 10 posts - 1 through 10 (of 13 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.