Use custom CSS on all posts, not pages
-
Theme: Astra (free)
Issue 1 (solved): keep sidebar displayed on the right of post content on tablet view, but keep mobile view to default (css code below)
Issue 2 (created by the solution to Issue 1): even on pages that have the sidebar disabled, the page content is now contained in the area specified by CSS written for Issue 1.
CSS code:
@media only screen and (max-width: 60em) and (min-width: 40em) { .ast-right-sidebar #secondary { clear: none; float: right; width: 35%; margin: 1em 0px 0px; } #primary { float: left; padding-right: 0px; width: 60%; } } _________
Thank you to anyone even reading/considering an assist ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Use custom CSS on all posts, not pages’ is closed to new replies.