Adjusting featured image width
-
I am trying to visually break up the whitespace that appears on my panel pages. I would like to included featured images as the background behind the titles of pages that are not top-level pages, but not behind other entry content. However, I would like these featured images to appear only as wide as the entry content, not the full width of the page.
For example, I would like the image behind the title “Committee” to be scaled to be only as wide as the text box that contains the names of the committee members on this page: https://ssp2018.org/about/#post-506
Any suggestions?
The blog I need help with is: (visible only to logged in users)
-
Hi, this is going to be a manual type of thing in that you will have to create CSS rules for each article/child page using the article post CSS id since there isn’t any broader CSS selector we can use. You can use the following as a guide, which does your Committee page on About.
.page-id-2 #post-506 { max-width: 56.25rem; width: 100%; margin-left: auto; margin-right: auto; } -
-
- The topic ‘Adjusting featured image width’ is closed to new replies.