If this is your first visit, check our documentation. To post, register or login.
Forums / Customization from the Admin / Template Editing Question

Template Editing Question

Started by freshteck on 13 Aug 2012, 12:25 PM · Views: 1,109

Results 1 to 9 of 9
13 Aug 2012, 12:25 PM
#1
freshteck avatar

freshteck

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

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

13 Aug 2012, 1:52 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Template Editing Question

Depends on what you want to do to what.

13 Aug 2012, 2:01 PM
#3
freshteck avatar

freshteck

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: Template Editing Question

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

14 Aug 2012, 3:38 AM
#5
freshteck avatar

freshteck

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: Template Editing Question

stevesh:

The two images appear to have been coded manually into define_main_page.php.

http://www.zen-cart.com/content.php?163-how-do-i-change-powered-by-zen-cart-and-add-position-a-new-logo

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

14 Aug 2012, 1:21 PM
#6
gjh42 avatar

gjh42

Black Belt

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

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.

15 Aug 2012, 1:08 PM
#7
freshteck avatar

freshteck

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: Template Editing Question

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

15 Aug 2012, 1:09 PM
#8
freshteck avatar

freshteck

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

Re: Template Editing Question

Also I would like to EDIT the image by just resizing it. Thanks

15 Aug 2012, 1:16 PM
#9
freshteck avatar

freshteck

New Zenner

Join Date:
Aug 2012
Posts:
9
Plugin Contributions:
0

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');