I note that Nic has has incorrectly shown this issue as being resolved when in fact it has not.

If I disable show sidebar information settings in Post additional params then save and view the page, while the sidebar is disabled also disabled are the show date and show author fields even though they are set as enabled.

How to fix?

Thanks

    Hi analystguy,
    I have checked and see that it's not the bug come from the theme. We have used this option to hide all the post info in single post.
    In this case, if you want to hide the post meta section in sidebar left of the single content post, you can use the following CSS code:

    .gk-post-meta {
        display: none;
    }
    .gk-post-meta + .content {
        margin-left: 0;
    }

    Or you can open the wp-themes/themes/gk-news/layouts/content.post.header.php file then replace the from line 37 to 43 with the following code:

    <?php if((!is_page_template('template.fullwidth.php') && ('post' == get_post_type() || 'page' == get_post_type())) && get_the_title() != '') : ?>
    	<?php if(!(get_post_type() == 'page' && get_option($tpl->name . '_template_show_details_on_pages', 'Y') == 'N')) : ?>
    			<?php gk_post_meta(); ?>
    	<?php endif; ?>
    <?php endif; ?>

    Hope this helps!

    Hi Dominic

    I made the change to content.post.header.php in the layouts folder of my child theme as you suggest and it does not fix the issue.

    After the recommended php change, when post sidebar information is enabled I see the meta data date, author leave reply as well as the sidebar information that shows categories, permalink, tags and author avatar.

    Disabling post sidebar information disables ALL the above information including meta data date, author and leave reply despite being enabled on the post.

    To recap, I want to see meta data date, author and leave reply. I do not want to see the sidebar information.

    Thanks

      Hi analystguy,
      Have you tried the CSS code to hide the sidebar infomation? And still enable the option.
      If you still face their issue, you can send me the username & password of your site, I will help you remove the sidebar infomation.

      I made the css change to Appearance > Customize and it work!! Thanks

      Write a Reply...
      You need to Login to view replies.