Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Dec 2006
    Posts
    130
    Plugin Contributions
    0

    Default A few customization questions...

    Hi there,

    I have a few questions with respect to customizing the layout...

    1. Is there a simple way to add additional links to the top, next to Home | Log In | Shopping Cart etc.?

    For instance, if you go here: http://infothreads.com you'll see "Home | Log In" at the top. This is where I'd like to place some of the category links I have in the side box. Ideally, I'd like to accomplish this without editing the core code.

    2. Regarding the footer information (i.e. Powered by... and all that), how do I align it so it's at the very bottom? I've tried editing the css file, but I've only been able to center it and change the text size.

    3. With respect to the meta title tags, is there an simple way to change the " : " to " | " ? For instance, when viewing misc. categories, I want it to display as "category name | sitename" thus not "category name : sitename".

    Thanks in advance for your help. Zen Cart is frickin' awesome...so much power.

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: A few customization questions...

    1. Look at includes/templates/YOUR_TEMPLATE/common/tpl_header.php and add the links in this section:

    Code:
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    If you don't have includes/templates/YOUR_TEMPLATE/common/tpl_header.php, copy includes/templates/template_default/common/tpl_header.php into the YOUR_TEMPLATE/common folder.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: A few customization questions...

    2. Regarding the footer information (i.e. Powered by... and all that), how do I align it so it's at the very bottom? I've tried editing the css file, but I've only been able to center it and change the text size.
    Also tpl_footer.php
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: A few customization questions...

    Quote Originally Posted by JHouse View Post
    2. Regarding the footer information (i.e. Powered by... and all that), how do I align it so it's at the very bottom? I've tried editing the css file, but I've only been able to center it and change the text size.
    includes/ templates/ your_template/ templates/ stylesheet.css

    Add the following declaration to your .css
    1. #siteinfoLegal {margin: 5em 0em 0em 0em;}

    Adjust the red font above for the site..

  5. #5
    Join Date
    Dec 2006
    Posts
    130
    Plugin Contributions
    0

    Default Re: A few customization questions...

    Quote Originally Posted by haredo View Post
    includes/ templates/ your_template/ templates/ stylesheet.css

    Add the following declaration to your .css
    1. #siteinfoLegal {margin: 5em 0em 0em 0em;}
    Adjust the red font above for the site..
    Awesome, that did the trick. I further modified it to:

    margin-top: 150px;

    Now it lays out perfectly in both FF and IE.

    I knew it could be done with just editing the css file. I'm doing my best to not touch the other files when it comes to layout, just the css.

    Thanks to both of you for your immediate help.

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: A few customization questions...

    J,
    you are most welcome, glad I could assist you...

  7. #7
    Join Date
    Dec 2006
    Posts
    130
    Plugin Contributions
    0

    Default Re: A few customization questions...

    Quote Originally Posted by afo View Post
    1. Look at includes/templates/YOUR_TEMPLATE/common/tpl_header.php and add the links in this section:

    Code:
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    If you don't have includes/templates/YOUR_TEMPLATE/common/tpl_header.php, copy includes/templates/template_default/common/tpl_header.php into the YOUR_TEMPLATE/common folder.
    Thanks for your immediate help.

    Is there a way to accomplish the same objective, but without editing the code? I'm very familiar with editing code, however, I'm doing my best not to mess with it in efforts of making upgrades quick and easy. If that's not possible though, and thus I have to edit the tpl_header.php file, do I add the additional links like this:

    Code:
    <li><a href="http://infothreads.com/">Conscious Tee Shirts</a></li>
    And yes, I do have includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    Thanks again for your assistance.

  8. #8
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: A few customization questions...

    Quote Originally Posted by JHouse View Post
    3. With respect to the meta title tags, is there an simple way to change the " : " to " | " ? For instance, when viewing misc. categories, I want it to display as "category name | sitename" thus not "category name : sitename".
    includes/ languages/ english/ your_template/ meta_tags.php

    Take a look around line 19 or so

  9. #9
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: A few customization questions...

    Quote Originally Posted by JHouse View Post
    Thanks for your immediate help.

    Is there a way to accomplish the same objective, but without editing the code? I'm very familiar with editing code, however, I'm doing my best not to mess with it in efforts of making upgrades quick and easy. If that's not possible though, and thus I have to edit the tpl_header.php file, do I add the additional links like this:

    Code:
    <li><a href="http://infothreads.com/">Conscious Tee Shirts</a></li>
    And yes, I do have includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    Thanks again for your assistance.
    That's the way to do it. There isn't anything from the admin. Just remember to use the overrides or your changes will be overwritten by the next upgrade/update.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  10. #10
    Join Date
    Dec 2006
    Posts
    130
    Plugin Contributions
    0

    Default Re: A few customization questions...

    Quote Originally Posted by haredo View Post
    includes/ languages/ english/ your_template/ meta_tags.php

    Take a look around line 19 or so
    That did the trick, thanks. It was actually line 47, and the code to change is:

    Code:
    define('PRIMARY_SECTION', ' | ');
    I'm not trying to correct you, just attempting to help others whom might have the same requests.

    Thanks again.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Please Help - A few layout customization questions
    By tbradley in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Dec 2011, 11:42 PM
  2. Few customization questions
    By rvdsabu4life in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Nov 2008, 07:12 PM
  3. A few misc customization questions
    By Brian1234 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Feb 2008, 03:35 AM
  4. Few Questions on a few issues.
    By RSprinkel in forum General Questions
    Replies: 6
    Last Post: 10 Mar 2007, 12:02 PM

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