How can i change the width for individual pages. Id like to change the width for my blog posts and not the front page
POSTS WIDTH
(6 posts) (3 voices)-
Posted 2 years ago #
-
you can use the custom single functionality.
Posted 2 years ago # -
I need some help getting this post specific width thing to work. I'm testing with the single-nosidebar.php article template.
From what I've gathered the page width is set by $bf_featureimage_width in library/css/optionstylesgen.php:
#container { width:<?php echo $bf_featureimage_width; ?>px; }
I'm not much of a PHP-person, and tried to just set $bf_featureimage_width to my custom value in every possible place within the single-nosidebar.php template to no avail.
Then I tried overriding the CSS container width by placing
<style type="text/css">#container {width: 950px;}</style>
before (and after) the get_header() call, but that only affected the body container's width and the header and footer were still the default 848px.
Clearly I'm doing this wrong, so what's the correct way to define a custom value for the header, body and footer width using the custom single functionality?
Posted 1 year ago # -
you set the container width in the theme settings with a setting called "Container Width".
Posted 1 year ago # -
you set the container width in the theme settings with a setting called "Container Width".
Yes, but that affects the entire website. I have a very wide table on one of my pages and need to make that individual page wider while not affecting the look of the rest of my site. I still think the "custom single" template is the way to go, I just don't know how to implement this properly.
Posted 1 year ago # -
are you using a child theme? because the header width is not set in the main theme. Use Firebug to find where the widths are set. Adding the css to single.php works, but it might be better to add an external css for this, and maybe add it in the child theme. The default image widths are based on variables, do you need to change those too?
Posted 1 year ago #
Reply
You must log in to post.