Answer the question
In order to leave comments, you need to log in
Is it possible to hide the divs that are generated on the search page?
Comrades, help me solve the problem - there is a directory on CMS Wordpress, it has a directory. A friend asked for help - he needs to display only one catalog search result. That is, the user is looking for something in the catalog, and a page with the code is generated for him
<div class="drts-row drts-gutter-sm">
<div class="drts-col-12 drts-col-sm-6 drts-col-lg-4 drts-view-entity-container :container(width>320px) :container(width>720px)">
<div class="drts-col-12 drts-col-sm-6 drts-col-lg-4 drts-view-entity-container :container(width>320px) :container(width>720px)">
<div class="drts-col-12 drts-col-sm-6 drts-col-lg-4 drts-view-entity-container :container(width>320px) :container(width>720px)">
<div class="drts-col-12 drts-col-sm-6 drts-col-lg-4 drts-view-entity-container :container(width>320px) :container(width>720px)">
Answer the question
In order to leave comments, you need to log in
Crutch, but if necessary, so
.drts-row .drts-gutter-sm div{
display:hidden;
}
.drts-row .drts-gutter-sm:first-child{
display:block;
}
First, I would give this container a custom class, let's call it classname.
.classname > div:not(:first-child) {
display: none;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question