Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / A few customization questions...

A few customization questions...

Locked

Views: 2,255

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
31 Mar 2008, 4:06 PM
#1
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

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.

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

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

31 Mar 2008, 4:47 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: A few customization questions...

  1. Look at includes/templates/YOUR_TEMPLATE/common/tpl_header.php and add the links in this section:
<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.

31 Mar 2008, 4:54 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: A few customization questions...

  1. 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
31 Mar 2008, 4:54 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: A few customization questions...

JHouse:

  1. 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..
31 Mar 2008, 5:11 PM
#5
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: A few customization questions...

haredo:

includes/ templates/ your_template/ templates/ stylesheet.css

Add the following declaration to your .css1. >

  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.

31 Mar 2008, 5:38 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: A few customization questions...

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

31 Mar 2008, 5:40 PM
#7
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: A few customization questions...

afo:

  1. Look at includes/templates/YOUR_TEMPLATE/common/tpl_header.php and add the links in this section:
<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:

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

31 Mar 2008, 5:48 PM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: A few customization questions...

JHouse:

  1. 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 :smile:

31 Mar 2008, 6:51 PM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: A few customization questions...

JHouse:

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:

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

31 Mar 2008, 7:41 PM
#10
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: A few customization questions...

haredo:

includes/ languages/ english/ your_template/ meta_tags.php

Take a look around line 19 or so :smile:

That did the trick, thanks. It was actually line 47, and the code to change is:

define('PRIMARY_SECTION', ' | ');

I'm not trying to correct you, just attempting to help others whom might have the same requests.

Thanks again.

31 Mar 2008, 7:50 PM
#11
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: A few customization questions...

afo:

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.

Great, I appreciate the heads up.

Instead of starting a new thread, is there a way to prevent Zen Cart from adding "www" to all my links? I thought I took care of this in the admin area, but apparently I didn't. I want to do this for SEO and PR purposes.

I love Zen Cart and the community. I do my best to figure things out on my own, but it's sure nice to get some help once in awhile. You guys helped me out with a quickness. I'm so impressed. I'm Zenned for life.

Thanks.

31 Mar 2008, 9:15 PM
#12
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: A few customization questions...

Scratch that, I'm just gonna use www on all of the links.

1 Apr 2008, 4:13 AM
#13
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: A few customization questions...

J,
you are most welcome, glad I could assist you with the : problem