• Hi Everyone,

    Recently I noticed that a few pages on my website (https://pvpc.com.au/contact-us-general-enquiries/) have been showing a ‘ghost’ sidebar area on the right-hand-side which I can’t seem to get rid of.

    If I go to widgets, I can see a ‘sidebar’ widget, but there’s nothing in it. However the space is still reserved for that widget it would seem.

    When I check the source code of the website, I can see the following section

    Div id="primary" class="content-area col-md-9">...</div> == $0

    If I change the -md-9 to -12, this resolves my problem. However how do I do that within the .css files in WordPress?

Viewing 3 replies - 1 through 3 (of 3 total)
  • look into page.php and edit this section (best by editing a copy of page.php in a child theme:

    	<div id="primary" class="content-area col-md-9">
    

    to:

    	<div id="primary" class="content-area col-md-<?php echo ( is_active_sidebar( 'sidebar-1' ) ? '9' : '12' ); ?>">
    

    if you have further theme specific questions, please post in https://www.ads-software.com/support/theme/sydney

    PS:
    edit:
    or you could use the ‘Full width’ page template for those pages.

    • This reply was modified 8 years, 2 months ago by Michael.
    Thread Starter bowlen

    (@bowlen)

    Life saviour!

    Thank you so much!

    I just edited my reply – apart from coding, you could also use the page template Full width which is part of your theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Sidebar Widget’ is closed to new replies.