• Resolved hugowebmaster06

    (@hugowebmaster06)


    Hello WordPress community,

    I am in the process of developing a site for a client who offers sports pronostics.

    To display the pronostics I created a custom post type with different fields in ACF.

    My concern is that sometimes the pronostic contains only one match, and other times several matches. So, I used the Dynamic Conditions extension from RTO Websites to hide the empty fields.

    The problem is that these fields are well masked but they still leave an empty space.

    How can I solve this problem?

    Thank you

    I am using Elementor Pro

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter hugowebmaster06

    (@hugowebmaster06)

    To display the pronostics, I created a loop with Elementor Custom Skin.

    I can’t send you the link of the page because the website is in maintenance but I made screenshots to show you which here is the link: https://we.tl/t-v6f04RscUZ

    Thread Starter hugowebmaster06

    (@hugowebmaster06)

    Link of a video : https://we.tl/t-IENROJHIcQ

    Moderator bcworkz

    (@bcworkz)

    Without being able to examine the underlying HTML and CSS on a live page, it’s very difficult to give meaningful advice. It’s not clear how the empty fields are hidden. If CSS visibility: hidden; is used, the space used by the element remains, even if invisible. You likely want display: none; instead. This collapses the space normally used by the element, as though it is not there at all.

    You could apply such CSS if the right selectors are used. Add the desired CSS to the Additional CSS customizer section.

    Thread Starter hugowebmaster06

    (@hugowebmaster06)

    Finally I managed to solve my problem with the help of someone using spacers with dynamic conditions on them ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I can’t hide empty fields (Custom Post Type)’ is closed to new replies.