Page 1 of 1
HTML code showing in title bar?
Posted: Fri Dec 14, 2012 3:22 am
by Heidi
Hi, can someone please help? I'm using an image instead of text for the title of my guestbook at the top of the page - a similar post on how to do this is here:
viewtopic.php?f=7&t=3628
Problem is, my code is showing up in the title bar as the title of the page, even though it shouldn't, as my website title has the correct title and the image is used under guestbook title. Can someone please help me fix this?
Here is the link to my guestbook:
http://ghosthuntergirls.com/guestbook/gbook.php
Re: HTML code showing in title bar?
Posted: Fri Dec 14, 2012 1:34 pm
by Klemen
Seems fine here - did you manage to fix it or am I missing something?
Re: HTML code showing in title bar?
Posted: Fri Dec 14, 2012 5:18 pm
by Heidi
I can still see it on my end, in both IE and Firefox. Look up at the top of the page where it displays the name of the webpage you're viewing.

Re: HTML code showing in title bar?
Posted: Fri Dec 14, 2012 5:51 pm
by Henrie
Klemen, you are indeed missing something. Somehow the image code is added to the <title> tag of the page.
Code: Select all
<title><img src="/images/banners/GHGBanner1.jpg"></title>
I think Heidi used the
$settings['gbook_title']="My guestbook"; inside the
settings.php file.
Because the text from
$settings['gbook_title']="My guestbook"; is also used in notification mails, it is best to not put the image code there, but just put a guestbook title in text there.
To put the image in the guestbook title instead of the simple text, you can best edit the file
overall_header.php which can be found in
templates/default/.
There you can find line 30
Code: Select all
<h1 align="center"><?php echo $settings['gbook_title']; ?></h1>
Change it to
Code: Select all
<h1 align="center"><img src="/images/banners/GHGBanner1.jpg"></h1>
Greetings,
Henrie
Re: HTML code showing in title bar?
Posted: Fri Dec 14, 2012 6:29 pm
by Heidi
A-HA! Thank you Henrie!!!!
That fixed it right up. Thanks so much for the help!