Answer the question
In order to leave comments, you need to log in
How to use css to hide block on certain urls?
How to make css hide block on certain urls?
Example:
It was at these addresses that site.ru/categories/*
css hid the block
.comments-count {
display: none;
}
and site.ru/categories1/*
The block was not hidden?
Answer the question
In order to leave comments, you need to log in
no way. css has no concept and should not have about where (at what url) it is executed.
Only through the back, for example, WordPress adds class s to the body tag, something like "page-12" in which case you cling to it. And best of all, of course, on the server side, this block should not be displayed at all if it is not needed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question