yog Posted April 26, 2008 Posted April 26, 2008 I wanna display some text in the header only on the homepage.
germ Posted April 26, 2008 Posted April 26, 2008 You'd want code something like this in the header: <?php if ( ( basename($PHP_SELF) == FILENAME_DEFAULT ) && ( is_null($cPath) ) ) { ?> ******** ERASE THIS LINE AND PUT THE HTML FOR YOUR TEXT HERE ******** <?php } ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
yog Posted April 26, 2008 Author Posted April 26, 2008 I had to disable the categories box cache because somebody replaced my categories for their own with links to their site. Now, she/he has added an extra line break to my site that only shows in Firefox. I did, however, solve my problem with this code: <?php if ($category_depth == 'top') { echo('***html goes here***'); } ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.