- Posts: 8
- Thank you received: 0
different logo on home page?
-
tinetrix
Inactive member - Topic Author
- New Member
Less
More
13 years 10 months ago #5840
by tinetrix
different logo on home page? was created by tinetrix
I am using hot_wellness successfully, and have customized a fair bit. I would like to add logic somewhere (perhaps in index.php?) that says:
if OnHomePage
show logo-home.png
else
show logo.png
Can it be done? Is there some value to check that says "I'm on the home page now"? I rather not have a duplicate copy of the template just for this.
if OnHomePage
show logo-home.png
else
show logo.png
Can it be done? Is there some value to check that says "I'm on the home page now"? I rather not have a duplicate copy of the template just for this.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6761
- Thank you received: 718
13 years 10 months ago - 13 years 10 months ago #5841
by milos
When you have this in index.php, when you are on the front page, img tag will be
otherwise, it will be
Replied by milos on topic Re: different logo on home page?
Code:
<img src="logo<?php if (@$_REQUEST['view'] == 'frontpage') { echo "-home"; } ?>.png" />
When you have this in index.php, when you are on the front page, img tag will be
Code:
<img src="logo-home.png" />
Code:
<img src="logo.png" />
Last edit: 13 years 10 months ago by milos.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6761
- Thank you received: 718
13 years 10 months ago #5842
by milos
Replied by milos on topic Re: different logo on home page?
Actually, in the Wellness template, you should change logo line with
Code:
<a href="index.php"><img src="<?php echo $template_path ?>/images/logo<?php if (@$_REQUEST['view'] == 'frontpage') { echo "-home"; } ?>.png" width="286" height="64" alt="Hot Wellness" /></a>
Please Log in to join the conversation.
Time to create page: 0.161 seconds