Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2012
    Posts
    9
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Template Editing Question

    Depends on what you want to do to what.

  3. #3
    Join Date
    Aug 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Template Editing Question

    Quote Originally Posted by stevesh View Post
    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

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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

  5. #5
    Join Date
    Aug 2012
    Posts
    9
    Plugin Contributions
    0

    application error Re: Template Editing Question

    Quote Originally Posted by stevesh View Post
    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

    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.
    Click image for larger version. 

Name:	Capture1.jpg 
Views:	59 
Size:	21.1 KB 
ID:	10973Click image for larger version. 

Name:	Capture2.jpg 
Views:	54 
Size:	20.8 KB 
ID:	10974

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  7. #7
    Join Date
    Aug 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Template Editing Question

    Quote Originally Posted by gjh42 View Post
    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

  8. #8
    Join Date
    Aug 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Template Editing Question

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

  9. #9
    Join Date
    Aug 2012
    Posts
    9
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. Help, editing template,
    By Shinitenshi in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 Sep 2011, 04:48 AM
  2. Editing a template 101
    By NekkidFish in forum Templates, Stylesheets, Page Layout
    Replies: 26
    Last Post: 24 Jan 2011, 03:01 AM
  3. Basic Template Editing?
    By ojhernandez in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Sep 2010, 03:11 AM
  4. Editing a template
    By fredheads in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Jun 2008, 05:08 AM
  5. Editing a template in DreamWeaver
    By hellman81 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Sep 2007, 10:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR