Change content width for different pages
-
Trying to make a page that’s full width for most of the pages, but also want to be able to have a blog section with sidebar. I figured out how to make the sidebar show up only on a specific page by using an if (in_category) statement, but I want to be able to change the width of the main content area from 960 to 680 so that the sidebar fits on that page. My CSS defines the width for the primary content and secondary content (sidebar) areas separately, but I would imagine I need to figure out a way in PHP to redefine the CSS of the primary content area only when I’m looking at the blog, but maybe there’s another way to go about this that’s easier and more “correct”? Here is the site:
https://tommybyrd.net/amelias/wordpress/
All of the links except “blog” should go to a full width page.
- The topic ‘Change content width for different pages’ is closed to new replies.