Can you stop a CSS class on a particular URL?
Posted: Mon Aug 07, 2017 11:06 am
Is there a way in a CSS class, to say if URL does not contain /blog, then do this.... ?
We have a full width category page which is perfect in Wordpress, but it is also assigning that class width to the Blogs. We want the Blog to not be full width.
So I wondered if it can be set to
.... when URL does not have /blog/ in it.
We have a full width category page which is perfect in Wordpress, but it is also assigning that class width to the Blogs. We want the Blog to not be full width.
So I wondered if it can be set to
Code: Select all
body .archive .grve-container,#disqus_thread,#grve-content.grve-left-sidebar .grve-content-wrapper,#grve-content.grve-right-sidebar .grve-content-wrapper
{
max-width: 89%!important;
margin-right: auto;
margin-left: auto;
}