Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding image to every page

Adding image to every page

Locked

Views: 3,714

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
22 Jun 2006, 10:56 PM
#1
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Adding image to every page

How do I add an image/link to every page? I would like to place it on the right hand panel

Thanks

23 Jun 2006, 1:02 AM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,601
Plugin Contributions:
0

Re: Adding image to every page

Add it to your tpl_main_page.php

23 Jun 2006, 1:45 PM
#3
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

What is the path to find this file? I saw one main.php but there isn't much text in it and I have no way of knowing where to put the logo link. I want to put it on the right side below the modules. Please explain.

Thanks

23 Jun 2006, 1:58 PM
#4
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

is the in the Define Page Editor? If that is it, how do I place the logo in the lower right hand corner of the page?

23 Jun 2006, 2:05 PM
#5
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

In Define Page Editor: When I try to add a link to the page the Insert/Modify Link box doesn't let me type in the link address. How do I get it to work?

23 Jun 2006, 5:26 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding image to every page

You want to edit /includes/templates/your_template/common/tpl_main_page.php.

Look for "navColumnTwo". You will probably add your link/image code in the navColumnTwoWrapper div.

24 Jun 2006, 12:35 PM
#7
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

I don't have a your_template. I'm using classic template.

if I go to:
Editing /home/portlao0/public_html/shop/includes/templates/template_default/common/tpl_main_page.php...

I see the nav column two but exactly where do I put the link? The code is confusing.

Thanks

24 Jun 2006, 12:57 PM
#8
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

here's some of the code:

<div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td> <?php

where do I add the link code?

24 Jun 2006, 2:03 PM
#9
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,601
Plugin Contributions:
0

Re: Adding image to every page

Geovino-

We use YOUR_TEMPLATE to symbolize your custom template. You must make a custom template or your changes will be lost when you upgrade your cart. Please see this FAQ section for mor einformation: http://www.zen-cart.com/forum/faq.php?faq=catalog_issues#faq_template_customize

25 Jun 2006, 12:34 PM
#10
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

OK, but the custom template will be what I have already done? What do you mean by upgrade the cart?

25 Jun 2006, 10:09 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding image to every page

Every few months (more or less) a new version of Zen Cart is released, with new features and fixes for problems that have been found. Even if you don't need the new features, it is always good to upgrade so your cart will work its best and be secure.

If you don't have a custom template, your customizations will be erased when the new files are loaded. The custom template (override) system keeps your customized files in a safe place where they will automatically be used when they are needed.

The Classic template was intended only for people upgrading from old versions of ZC and is not really suitable for building a new store.
If you have already altered the Classic template files to your liking, the simplest fix would be to copy all /classic/ folders and the files in them and rename the copied folders to /your_template/, then follow the directions in the FAQ for editing template_info.php and activating your template.
The best fix would be to apply your styling to a copy of /template_default/ or the free future_zen template you can download (button at top of page).

In your code snippet

<div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td> <?php

you would probably insert your link code before the </div>

...lumn_right.php')); ?><your link code goes here></div>

Good luck!

26 Jun 2006, 3:59 PM
#12
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

Ok, I'll give that a try. I very tedious to us the file manager in cPanel, would it be better to use a FTP client like SmartFTP? It's probably easier to move files around.

26 Jun 2006, 6:30 PM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding image to every page

Creating folders and copying files in cPanel will probably work fine, but I understand it is not recommended for editing files - it tends to put undesirable characters/symbols in without telling you.

FTP'ing copies to your local computer, editing there and FTP'ing back as the desired custom template files is the recommended practice. FileZilla is another respected FTP client.

27 Jun 2006, 12:43 AM
#14
aop avatar

aop

New Zenner

Join Date:
May 2006
Posts:
5
Plugin Contributions:
0

Re: Adding image to every page

Hi there:

I took advantage of this thread and add a Image link on my right side column.
I followed instructions and it worked. But my image shows at the end of the right column. Is there any way that we can handle the position of this image link ?
I'd like to have some others image links; one on the first position of the righ column and other on the middle and at the bottom, etc
Appreciate your help.
Thanks :D

aldo

28 Jun 2006, 3:53 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding image to every page

Adding an image link at the top of the sidebar is as easy as adding it at the bottom. Just put your code at the beginning of the div:

...echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MOD...
...echo BOX_WIDTH_RIGHT; ?>"><your link code><?php require(DIR_WS_MOD...

Other positions will be trickier. You will have to look in the php file where the column_right boxes are assembled (it is called by tpl_main_page.php). It will likely not just be a matter of dropping code into a spot. Good luck! :)

28 Jun 2006, 11:31 PM
#16
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

I'm trying to follow the instructions for creating a custom template and using a ftp program it will not allow me to copy and paste files into the new directory. it only transfers. why is this? its very frustrating to have trouble with something that seems to be simple.

28 Jun 2006, 11:40 PM
#17
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

Kim,

I have tried to follow the directions to create a custom template, but when It asks to copy the css files to my own css directory in my custom "winegear" folder it won't let me copy and paste it only wants to move the existing files. How do I get it to copy the files to my new css directory?

30 Jun 2006, 7:16 PM
#18
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

Thanks Glenn,

How do you use one of these new templates? Are there instructons? As you can see I'm rather confused with it all. but I'm persistent and have to finish this shop for my client.

Go to http://www.portlandwinegear.com/shop and you can see what a mess it is since I created a custom template. I want to get rid of all the purple and pink! why would that replace the basic orange theme with these bad colors to begin with??

30 Jun 2006, 11:50 PM
#19
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

I made some progess with the shop, now I want to add the logo-link to the lower right hand column, do I ftp the image to my image folder at:
includes/templates/my-winegear-template/image ?

30 Jun 2006, 11:59 PM
#20
geovino avatar

geovino

New Zenner

Join Date:
May 2005
Posts:
98
Plugin Contributions:
0

Re: Adding image to every page

What file do I put the image in?

I now have a custom template called winegear_template. but I don't have a tpl_main_page.php file there. where is it?

Thanks for helping