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
Views: 3,714
New Zenner
How do I add an image/link to every page? I would like to place it on the right hand panel
Thanks
Obaa-san
Add it to your tpl_main_page.php
New Zenner
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
New Zenner
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?
New Zenner
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?
Black Belt
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.
New Zenner
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
New Zenner
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> <?phpwhere do I add the link code?
Obaa-san
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
New Zenner
OK, but the custom template will be what I have already done? What do you mean by upgrade the cart?
Black Belt
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> <?phpyou would probably insert your link code before the </div>
...lumn_right.php')); ?><your link code goes here></div>
Good luck!
New Zenner
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.
Black Belt
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.
New Zenner
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
Black Belt
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! :)
New Zenner
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.
New Zenner
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?
New Zenner
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??
New Zenner
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 ?
New Zenner
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
Fields marked required must be completed.
Tell staff why this post should be reviewed.