• Hi, I have certain posts where I do not want to display the Right Sidebar.

    I tried commenting the following line from single.php

    <?php ttfmake_maybe_show_sidebar( ‘right’ ); ?>

    But to no avail.

    I don’t mind modifying the theme, I’m using a child Theme.

    Anybody know how to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • following…
    I would prefer not to have to do a child theme, but I can if I have to.

    @kggs – are you offering help here?

    Sorry – yes, that was unclear.

    I am following this post because I have the same issue.

    I was clarifying that, unlike the original poster, I would prefer not to have to use a child theme, but that I am capable of using a child theme if that’s the only way to accomplish this goal.

    Hope that’s more clear.

    Do you think there’s a way to do this??!!

    THANKS!! ??

    Thread Starter chanchalkariwala

    (@chanchalkariwala)

    Hi!

    Well I did find a way, but I made changes to single.php and by using custom fields in posts

    So if the custom field is available in the post –
    <main id="site-main" class="site-main" role="main" style="width:100%">

    and

    put this statement in and if condition
    ttfmake_maybe_show_sidebar( 'right' );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide Sidebar in certain Posts’ is closed to new replies.