skip to Main Content

Using Elementor in WordPress to style a Website. A complete row gets the ID "newsticker" – there are posts from category newspicker displayed.

I want to hide this complete row (display: none) when there are no posts in this category. How is this possible, using the $get_terms function does not help :/

2

Answers


  1. You can hide the row in the Advanced tab -> Responsive dropdown -> Hide in all devices – desktop, tab, and mobile, in elementor. Or you can delete that row if it is useless. 🙂

    Login or Signup to reply.
  2. If you can add style to your codes you can add a some style like below but it works only when your element is fully empty like this .<div class="row"></div>

    .row:empty{
    display: none;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search