How to remove fill div if content empty?

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

    Hello Sir,

    I am using custom template functions in my theme file. You can see here:

    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!

    Support Team

    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.

    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)
  • The forum ‘WP Travel’ is closed to new topics and replies.