Removing sidebar
-
Hi Maeve
I know this is probably out the scope of your support but it’s driving me bonkers π
I went to remove get_sidebar from this file single-wpcproduct.php but couldn’t find it (got the idea from here http://wordpress.org/support/topic/remove-sidebar-form-post)
Any ideas on how to remove it? Every tutorial I’ve looked at won’t work as there are no custom fields on the WP Catalogue custom posts.
Your help would be hugely appreciated and stop me from going insane π
-
Hi Steve, what exactly are you trying to achieve? Is it the categories sidebar you want to remove just from the WP Catalogue pages?
If so, you could do it really easily by adding this CSS to your theme:
#wpc-col-1 { display: none !important; }Or have I misunderstood what you’re trying to accomplish?
Hi Maeve
Sorry, I wasn’t very clear. The right sidebar (not categories list) will not disappear even when I have the catalogue item as full width – it jumps to the bottom of the page.
See here:
http://stevethebartender.com.au/wpcproduct/dome-marquee-hire-adelaide/Hi Maeve
Sorry to pester – any ideas?
Thanks in advance!
Oh right! I see what you mean now. OK this is actually your theme sidebar. You need to remove the sidebar from the template you want to use with the catalogue and then use the inner page header/footer field to make sure the inner pages are using the correct template.
I have a full width template with my theme. That’s what I thought this line would do…
<div id=”content page-template-fullwidth”>
…but doesn’t seem to fix it π
Hi Maeve
Are you able to expand on that? I don’t have custom post templates with my theme, only page templates. I have created a custom post template by copying singular.php and also tried with post.php and removed the line referring to ‘get sidebar’ within the file.
I’ve renamed them and added -nosidebar to the php file. I have then used <div id=”content post-nosidebar”> in the WP Catalogue settings.
I don’t even know if I am close but nothing I am trying is working…please help with a little more detail.
Thanks in advance.
The topic ‘Removing sidebar’ is closed to new replies.