Dear WordPress Experts I am using WordPress 3.8 on my webiste (pakistantribune.com.pk) using Jarida WordPress theme. Jarida is a 3 coulmn theme with 1. Content Area (620 Px) 2. Narrow Sidebar (160 PX) 3. Normal Sidebar (300 PX) Now I want to remove/Hide Narrow Sidebar (160 PX) in single post pages belonging to "Football Category" to extend the content area width by 160 px. How can I do this? I have very little programming skills but if guided can implement pieces of code and tweak. Alternatively, I can provide Theme files is someone can help me out in configuration. Jarida is a premium WordPress theme but customizations are not covered under support. Regards Azhar Nadeem
You need to use a condition which displays the sidebar only when the current post isn't in category X. The code might look like this: <?php if(!in_category('football')){ //use the ID of the category or its slug ?> <!-- sidebar code which will be displayed if the current post isn't assigned to the category --> <?php } ?> PHP: http://codex.wordpress.org/Function_Reference/in_category
@Devtard Thank you for the reply. Actually I looked into single.php and sidebar.php...single.php does not call narrow-sidebar separately so i think it will be difficult for me to manipulate this. Actually I want wider content area in couple of posts only. Will it be possible through CSS. If Yes, Can you help with some code Example post pakistantribune.com.pk/8559/english-premier-league-sports-center.html