Zen Cart Logo
Forums / Basic Configuration / facebook link in header

facebook link in header

Views: 3,420

Results 1 to 8 of 8
24 Jan 2011, 9:01 AM
#1
alexdog1805 avatar

alexdog1805

Zen Follower

Join Date:
Sep 2010
Posts:
109
Plugin Contributions:
0

facebook link in header

I want to put facebook link in header.

https://www.otisweb.ro/souvenirs

how to do that?

24 Jan 2011, 9:09 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: facebook link in header

I would add the code in a new named div to a copy for your template of the tpl_header.php file
You can then style/position it in the stylesheet

25 Jan 2011, 9:34 PM
#3
alexdog1805 avatar

alexdog1805

Zen Follower

Join Date:
Sep 2010
Posts:
109
Plugin Contributions:
0

Re: facebook link in header

kobra:

I would add the code in a new named div to a copy for your template of the tpl_header.php file
You can then style/position it in the stylesheet

where whould I put the div>

in stylesheet.css or stylesheet_tm.css

25 Jan 2011, 10:20 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: facebook link in header

where whould I put the div>
As you want this in the header you place it in the proper order in a copy for your template of

tpl_header.php

<div id="your_name" class="if_needed">
26 Jan 2011, 11:05 AM
#5
alexdog1805 avatar

alexdog1805

Zen Follower

Join Date:
Sep 2010
Posts:
109
Plugin Contributions:
0

Re: facebook link in header

I made right this and it's not working:

include/templates/my_template/common/tpl_header.php:

<div id="header"><div class="facebook"><a href="http://ro-ro.facebook.com/pages/Romanian-Souvenirs/106103736098177?v=wall"><img src="facebook.gif"></a></div></div>

include/templates/my_templates/css/stylesheet_tm.css :

#header .facebook  {padding:10px 10px 10px 10px}

and the "facebok.gif" I put in "include/templates/my_template/common/" .

What should I modify?

26 Jan 2011, 11:20 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: facebook link in header

Your src needs a path and you should place it in the /images of your template

<img src="includes/templates/my_template/images/facebook.gif"

Possible full but you really did not need the class

<div id="header" class="facebook"><a href="http://ro-ro.facebook.com/pages/Romanian-Souvenirs/106103736098177?v=wall"><img src="includes/templates/my_template/images/facebook.gif"></a></div>
26 Jan 2011, 11:34 AM
#7
alexdog1805 avatar

alexdog1805

Zen Follower

Join Date:
Sep 2010
Posts:
109
Plugin Contributions:
0

Re: facebook link in header

I modified something and it's working, but it doesn't link me to the facebokok link:

stylesheet_tm.css:

#header .facebook  {background:url(../images/facebook.png);margin:0px 0px 0px 90%;padding:0px 0px 0px 0px;width:30px;height:30px;}

tpl_header.php:

<div id="header">
<div class="facebook">
<a href="http://ro-ro.facebook.com/pages/Romanian-Souvenirs/106103736098177?v=wall"></a>
</div></div>

everything it's ok it shows me the background picture in the header but the link it's not woring. why?

26 Jan 2011, 11:45 AM
#8
alexdog1805 avatar

alexdog1805

Zen Follower

Join Date:
Sep 2010
Posts:
109
Plugin Contributions:
0

Re: facebook link in header

problem solved, thank you very much!!!!