- This topic has 11 replies, 3 voices, and was last updated 2 years, 1 month ago by David.
April 17, 2019 at 11:07 am #871872Florian
I want to add a box-shadow to the whole middle part, but when I add it to the “content” area, the shadow is not applied to the primary menu (see https://i.imgur.com/cuwHcDv.png).
Can you tell me how I can target the whole middle part including the menu bar?GeneratePress 2.2.2GP Premium 1.7.8April 17, 2019 at 11:09 am #871877LeoStaffCustomer SupportApril 17, 2019 at 11:22 am #871904Florian
Hey, this also leaves out the menu bar, similar to the previous approach.April 17, 2019 at 12:17 pm #871935LeoStaffCustomer Support
Maybe I’m not quite sure what you are trying to achieve.
Are you trying to add border on top of the menu bar?
If so we will need to take a different approach as there is currently no space there for anything to show.April 17, 2019 at 12:31 pm #871947Florian
You can see it in the image link I posted. I want a shadow on the right and left side of the content area, but it’s leaving out the header.April 17, 2019 at 2:47 pm #872020LeoStaffCustomer SupportApril 18, 2019 at 1:39 am #872318Florian
I already tried this, but this also adds a shadow to the bottom of the header which is then over the body.April 18, 2019 at 2:55 am #872363DavidStaffCustomer Support
it would require you to add a Wrap around the nav and the content to do that.
You would create 2 Hook Elements.
<div class="shadow-wrap grid-container"> <!-- open wrap -->
Note: the editor will add the closing
</div>– delete it.
<!-- close wrap --></div>
Both hooks you will want to set the Display Rules to Entire Site.
Then you can target the
shadow-wrapclass for your CSSApril 18, 2019 at 3:33 am #872376Florian
Thank you. Can you tell me how exactly that code would look like? I guess I have to put it into funtions.php?April 18, 2019 at 3:39 am #872378DavidStaffCustomer Support
You can use the Elements module:April 18, 2019 at 3:50 am #872389Florian
That worked perfectly! Thank you!April 18, 2019 at 3:54 am #872391
- You must be logged in to reply to this topic.