Easy question - how to add link to logo

About the template and stylesheet - and changing the menu
Post Reply
Ian
Posts: 7
Joined: Thu Sep 17, 2009 4:59 pm

Easy question - how to add link to logo

Post by Ian » Thu Sep 17, 2009 11:13 pm

I just want make that when I'll click logo of my website and it'll move to homepage. In which file can I make it?

Sorry for my language :roll: I hope you'll understand :)

Till
Posts: 337
Joined: Tue May 20, 2008 7:20 am
Location: Germany: Bremen
Contact:

Re: Easy question - how to add link to logo

Post by Till » Fri Sep 18, 2009 4:04 am

You have to hard-code it inside your template. Check template.htm of your chosen template.

Till

Ian
Posts: 7
Joined: Thu Sep 17, 2009 4:59 pm

Re: Easy question - how to add link to logo

Post by Ian » Fri Sep 18, 2009 6:18 am

Thanks.

johnjdoe
Posts: 571
Joined: Tue May 20, 2008 6:32 am

Re: Easy question - how to add link to logo

Post by johnjdoe » Sat Nov 14, 2009 7:36 am

[quote="johnnychat"]You have to hard-code it inside your template. Check template.htm of your chosen template.

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Easy question - how to add link to logo

Post by Tata » Sat Nov 14, 2009 8:13 am

You also can put a newsbox for the logo in your template and make a hiddne page with a logo graphic. Then you can simply make any link to the logo graphic (external with a target or internal). For me this seems to be more flexible.
In template:

Code: Select all

<div class="your_logo_class"><?php echo newsbox('logo');?></div>
in your content:

Code: Select all

<h1>logo</h1>
#cmsimple hide#
<a href="any_url_you_want" target="any_if_external_link"><img src="images/your_logo.jpg" alt="your_desription"></a>
This way you can put even more logos or grapics and keep the possibility to change/edit them easily withou the need to touch your template.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply