A
A
Alexander Mishchenko2018-09-26 10:21:01
HTML
Alexander Mishchenko, 2018-09-26 10:21:01

How to remove a block with a carousel from the main page if it is empty?

There is a block with a carousel on the site for fixed news only. Output via {custom}. If you remove all the news from the carousel, then it remains empty (captain obvious :)). Actually the question is how to hide it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
good_beginer, 2018-09-26
@good_beginer

<style type="text/css">
.owl-scr:empty {
display: none;
}
</style>

tested not demo version, should help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question