How to remove fill div if content empty?

Homepage Forums WP Travel How to remove fill div if content empty?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22041
    karankcoresys
    Participant

    Hello Sir,

    I am using custom template functions in my theme file. You can see here: https://wptravel.io/support-forum/topic/template-functions-php-not-working-in-theme/

    There is a function like that:

    <div> <?php echo $trip_exclude;?> </div>

    I want if the trip includes and excludes not have content so hide full div and show nothing also don’t show default message “No details found.”

    Please help!

    #22045
    Support Team
    Keymaster

    Hello @karankcoresys,

    If you do not have content in the tabs you have mentioned, then you can disable the tab itself by going to the individual trip > tab section if you have used the individual tab section. If you have used global setting then go to WP Travel > Setting > Tab and turn off the tab.

    https://prnt.sc/qbek8m

    The automatic control of the tab as you have mentioned is noted as the requested feature, which we will work in the future.

    Thank you.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.