Need to Make Featured/Panel Images Full Width + need padding-right for side menu
-
Hi,
I was designing a basic website for an employer to fill in with more content using Bluehost and the site has not been launched, so I can’t provide any links, but I’ll provide images. I am using a Child Theme of Twenty Seventeen that I created through the plugin Child Theme Configurator.
I have fairly minimal experience with WordPress and with CSS so I’ve made ample use of the forums to solve various problems. In doing so, it seemed that I created another problem: the panel images (which are featured images on the pages I’ve chosen to be featured as front page sections) are not displaying as full width anymore (they did before); they get magnified and only take up about 60% of the browser.
See here: https://i.imgur.com/gjrBDb3.pngThis is what it looks like to view one of the front page sections with the panel image behind it: https://i.imgur.com/Wi1aJW8.png
I have various customizations in the Additional CSS and I’ve tried removing each one to see if there is any effect on how the panel images display. The only attribute that seems to have an effect is this one:
.page-id-8 #main { width: 100%; }
I’ve tried adding a max-width attribute to this with values of 100% or more and also “none” with no effect. I’ve also tried increasing the value of the width (e.g. 120%); that causes the panel image to stretch to the right.
I viewed the featured image on the page “About” and it also does not display at full-width (see below). I’m not sure if these two issues are related and I have been unable to fix them using solutions offered in similar forum topics:
See the About page here: https://i.imgur.com/5DJyREJ.pngUnfortunately, it’s been several months and I didn’t keep a record of the solutions I tried applying to the Additional CSS. Some of the recent ones I’ve tried are below:
.home .panel-content .wrap { max-width: 100%; }
and
.panel-image { width: 100%; padding: 0px !important; }
and
.twentyseventeen-front-page .content-area .wrap { max-width: none }
The other issue I’m having is with the side-bar on the “About” page. I want to have some padding on the right; I fixed this issue previously for the pages listed in the sidebar itself, but I’m not sure why it persists on the About page.
I tried these two customizations without success:.right-sidebar { padding-right: 50px; }
(For this one I also tried to add .widget-area and .page-id-9 before .right-sidebar.)
and
.page-id-9 .content, .sidebar{ padding-right: 50px; }
I feel like I’ve been running in circles and hitting walls every time I tackle these issues; I would be so grateful for some help!
– Ruth
- The topic ‘Need to Make Featured/Panel Images Full Width + need padding-right for side menu’ is closed to new replies.