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

  • Anonymous

    #7327

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

    Thank you for your help

    Admin

    Syahir Hakim

    #37843

    Use the Widget Logic plugin.

    Anonymous

    #37844

    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?

    Admin

    Syahir Hakim

    #37846

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

    Anonymous

    #37847

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

    Admin

    Anonymous

    #37849

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

    null

    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 ?

    Admin

    Syahir Hakim

    #37850

    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:

    to:

    Template Name Posts:

    Anonymous

    #37851

    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…

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

    get_header(); ?>

    <?php
    /* 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(); }
    ?>

    <?php
    /* 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>
    <?php
    /* Start the loop again to list all of the author's posts with excerpt */
    rewind_posts();

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

    /* Posts navigation. */
    graphene_posts_nav();
    ?>

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

    <?php get_footer(); ?>
    Admin

    Syahir Hakim

    #37852

    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.