Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #79278
    orim
    Member

    Hello,

    I can see my sidebar only in pages but not in posts.

    I found this thread but the solution didn’t work for me because I didn’t find “Optional Post Sidebar” in “Appearance => Widget”.

    HOWEVER

    It is not just the sidebar that is missing in posts. It is also FOOTER and BACK-TO-TOP-BUTTON. It is quite strange really.

    I’ll be grateful for any help.

    This is the site: http://eshop.byethost33.com/
    And HERE is a POST (with missing elements): http://eshop.byethost33.com/ale-no-nehovor/

    #79279
    orim
    Member

    I just found out that there’s another thing missing in posts. COMMENT FORM!
    There’s a check in the “Allow comment” check box at all posts but the comment form won’t appear.

    #79293
    Sakin
    Keymaster

    @orim: Looks like you have edit core theme files and can you check your single.php file with this file https://themes.svn.wordpress.org/catch-base/2.5/single.php. You must have deleted code there.

    #79302
    orim
    Member

    Hello Sakin,
    that was the first thing I cheked. I compared single.php to page.php for any differences but there were none. That’s why I don’t get this at all.

    I thought I would just add get_sidebar and get_footer lines there and that would be it but sadly, that was not the case.

    My single.php file looks like this:

    <?php
    /**
     * The Template for displaying all single posts
     *
     * @package Catch Themes
     * @subpackage Catch Base
     * @since Catch Base 1.0 
     */
    
    get_header(); ?>
    
    	<main id="main" class="site-main" role="main">
    
    	<?php while ( have_posts() ) : the_post(); ?>
    
    		<?php get_template_part( 'content', 'single' ); ?>
    
    		<?php 
    			/** 
    			 * catchbase_after_post hook
    			 *
    			 * @hooked catchbase_post_navigation - 10
    			 */
    			do_action( 'catchbase_after_post' ); 
    			
    			/** 
    			 * catchbase_comment_section hook
    			 *
    			 * @hooked catchbase_get_comment_section - 10
    			 */
    			do_action( 'catchbase_comment_section' ); 
    		?>
    	<?php endwhile; // end of the loop. ?>
    
    	</main><!-- #main -->
    	
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    …and I pretty much think it’s exactly the same as the link you posted above.

    WHERE’S THE RUG?

    #79303
    orim
    Member

    WELL, I’LL BE DAMNED !

    It’s been miraculously sorted out. 🙂
    I have just upgraded WP and it works like a charm. I’m pretty sure I’ll have dreams about this tonight… it’s above my powers to understand but it doesn’t matter.
    It works!
    Lovely!
    Thank you for all your good work, Sakin.

    Have a great Sunday.

    orim

    #79329
    Sakin
    Keymaster

    @orim: thanks and you too have a great Sunday.

    #91124
    gaiabee
    Participant

    @sakin: Hi there – sorry I’m adding to this thread rather than starting a fresh one, but I couldn’t find a place to do it. (guidance appreciated).
    Well, I’m haven a lot of fun playing with my new site (www.voicesoftheselves.com).
    I’m keeping it pretty simple (4 pages), but I just noticed that some of my pages display my primary sidebar and others don’t. Ideally, I would have control of which pages it shows up (e.g. YES on the homepage and a contact page I want to create, NO on other pages) but I don’t know if that’s an option (I couldn’t find one in the customize settings). I’m new to WP and eager to learn, but still a newbie 🙂
    Your help would be appreciated! Thanks!

    #91128
    Sakin
    Keymaster

    @gaiabee: In you are confusing about how to post in new topic, then check out https://www.youtube.com/watch?v=ex9rByi_a3Q

    Yes, you can control layout from two places:
    1. For overall layout, you need to go to “Appearance => Customize => Theme Options => Layout Options”
    2. Then you can also change it in individual page/post. For that, just edit page/post which you want to edit. Then below your content editor, you will see “Clean Box Options” meta box, there you can click on “Layout Options” and change as per your need.

    #91130
    gaiabee
    Participant

    Thank you! Silly I missed that!
    Appreciate your quick response very much 🙂
    I’ve already benefitted so much from your replies to others (for changing header colors, bolding, etc.)
    Take care!

    #91155
    Sakin
    Keymaster

    @gaiabee: No Problem. We are there to show it to you anytime. Cheers 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Sidebar missing in a POST’ is closed to new replies.