Conditional visibility

Hi all,

I have a blog index page as an Archive Layout. Part of that template has a pagination element. Immediately above that element is some headline text.

Some of the category pages don’t currently have enough posts for the pagination to kick in. For those pages, is there a way to automatically hide the headline text?

Hey @KEXINO,

We can’t tell if it’s possible without knowing the exact setup. Please provide the following information a Secure Note.

  • Page URL where we can see the headline text above the pagination.
  • WordPress Login URL
  • WordPress admin level username and password

You can find the Secure Note button at the bottom of your posts.

.

Thanks for getting back to me so quickly.

Creds are in the SN.

Hey @KEXINO,

To show/hide an element depending on the number of items or paged items, you can use {{dc:looper:total_pages}} > 1 as your condition.

image

Best Regards.

Thanks @ruenel, but that condition is already applied to the headline element, yet still appearing on the front end. I tried clearing hosting cache, CloudFlare cache, browser caches, etc. but it’s still there.

Hey @KEXINO,

The text is not showing on my end (see secure note). Please try clearing all caches.

Thanks.

I’ve cleared all caches but I still see the text. Maybe it’s my DNS.
No matter, if you don’t see the text from your side, that’s all that matters.
Thanks for your help.

You’re welcome, @KEXINO

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.