Code: Select all
<!-- If someone goes to any of these pages, show the html and/or php code. -->
<?php
if ($_SERVER['REQUEST_URI'] == '/' or
$_SERVER['REQUEST_URI'] == '/index.php' or
$_SERVER['REQUEST_URI'] == '/index.php?option=com_content&view=frontpage&Itemid=1' or
$_SERVER['REQUEST_URI'] == '/home-mainmenu-1.html')
{ ?>
(Put html, css or more php code here)
(Be sure to use beginning and ending php tags for embedded php code:)
example: <?php (more php code here) ?>
<?php } ?>
Best,
wolfix