Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Controlling sidebars in custom post types (http://forum.bytesforall.com/showthread.php?t=20692)

SCUIE Jul 25, 2013 07:52 AM

Controlling sidebars in custom post types
 
Hi all

WordPress 3.5.2
Atahualpa 3.7.12

I have an events manager plugin installed and I would like to control the sidebars. As the ATO only control pages and posts I wondered how I could control the visibility of the sidebars when the url of the custom posts are like this "http://live.alicepark.co.uk/?event=giffords-circus-is-here-aug-22-26th"

Any help would be greatfully appreciated

Thanks in advance


Mike

juggledad Jul 25, 2013 02:52 PM

If every page that shows for an event has the body class of 'single-event' you could try add the following to the CSS inserts
HTML Code:

body.single-event .colone {width: 0px;}

SCUIE Jul 26, 2013 01:24 AM

Great idea, I will try it. Thank you

Mike


All times are GMT -6. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.