Template Editing Question
I want to just say first that the support on this forum is great. With that being said I recently downloaded a new template to my site. It looks fine but there are things that I want to change about it. Where would I go to edit things like boxes, text, etc. I figured there would be a easy option somewhere in the Admin but I cannot seem to find it. Do I have to go in and actually edit the script in order to change it? Thanks in advance.
Fresh Teck
Re: Template Editing Question
Depends on what you want to do to what.
Re: Template Editing Question
Quote:
Originally Posted by
stevesh
Depends on what you want to do to what.
My webiste is freshteck.com
Well I want to edit:
1. The buttons that are horizontal on the top that say New Prodcuts Etc. Also.
2. The logo at the top left
3. The photo that says 50% off as well as the one underneath that says free shipping on orders.......
Thanks for your fast response. I hope this can help you help me.
Fresh TECK
Re: Template Editing Question
The two images appear to have been coded manually into define_main_page.php.
http://www.zen-cart.com/content.php?...ion-a-new-logo
2 Attachment(s)
Re: Template Editing Question
Quote:
Originally Posted by
stevesh
Ok I have got the image onto my website. Now I'm having trouble editing the image. I have followed the directions I believe to a T. Please let me know if I'm doing something wrong here. I have attached two photos in hopes that it will help you better understand. Thanks in advance.:dontgetit
Attachment 10973Attachment 10974
Re: Template Editing Question
How do you want to "edit" the image? Is your new image named logo.gif? What are the pixel dimensions of the file? You need to change the defines for HEADER_LOGO_IMAGE, HEADER_LOGO_WIDTH and HEADER_LOGO_HEIGHT to match what you have.
You need to copy header.php from /includes/languages/english/ to /includes/languages/english/your_template_name/ before editing it. Create the new folder if you need to.
Re: Template Editing Question
Quote:
Originally Posted by
gjh42
How do you want to "edit" the image? Is your new image named logo.gif? What are the pixel dimensions of the file? You need to change the defines for HEADER_LOGO_IMAGE, HEADER_LOGO_WIDTH and HEADER_LOGO_HEIGHT to match what you have.
You need to copy header.php from /includes/languages/english/ to /includes/languages/english/your_template_name/ before editing it. Create the new folder if you need to.
Thank you for your help. Yes my file is called logo.gif Do I need to put logo.gif in another file like I did header.php I copied header.php from /includes/languages/english/ to /includes/languages/english/my_template_name/. But when I edit it the logo stays the same size.
I found the logo.gif file on my desktop and right clicked it and went to properties it has a it was 168x233 pixels. I defined both header.php files with this pixel dimension. I also defined the header_logo_image to logo.gif
Still no luck. What am I doing wrong? Thanks in advance
Re: Template Editing Question
Also I would like to EDIT the image by just resizing it. Thanks
Re: Template Editing Question
This is what it looks like in the header.php file
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Fresh TECK');
define('HEADER_SALES_TEXT', 'Freshest Technology');
define('HEADER_LOGO_WIDTH', '168px');
define('HEADER_LOGO_HEIGHT', '233px');
define('HEADER_LOGO_IMAGE', 'logo.gif');