- This topic has 2 replies, 2 voices, and was last updated 1 year, 9 months ago by .
- You must be logged in to reply to this topic.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
OK code gurus out there... I have a need to enqueue a new css file based on the genesis layout selection of "content-sidebar". By default, I will use a Genesis full width layout for the site, but on certain pages, I "MIGHT" want to use "content-sidebar" in the future.
My actual page design uses a series of column blocks that will need quite a few css tweaks to display properly in mobile screen sizes depending on whether I decide to change page layout from full width to conent-sidebar or vice versa.
It would just be easier to manage moving forward if I could automatically use a new CSS file when a page, post, or CP is using a content-sidebar layout change.
Anyone know what the conditional statement would be to enqueue a new css file based on a content-sidebar genesis layout being selected?
Many thanks in advance for thinking about this one.
Yes, that worked Brad. Thank you very much!
© 2023 WPEngine, Inc.