Jump to content

brandon sherrick

Members
  • Posts

    1
  • Joined

  • Last visited

brandon sherrick's Achievements

Starter

Starter (1/6)

1

Reputation

  1. Hello @kaz, Conditional Check within the Included File (businesshours.php). try to Modify businesshours.php to check if the current page ID should display the address. <?php if (!isset($global->businesshours) || $page->id != 1127) { // Display the business hours content echo $global->businesshours; } ?> Use an if statement before the include to check the page ID. kynect <?php if ($page->id != 1127) { include('businesshours.php'); } ?> If you have multiple places where you want to conditionally include or exclude the business hours based on the page ID, consider modifying businesshours.php for a reusable solution. If this is a one-time case for page 1127, using a conditional include might be simpler.
×
×
  • Create New...