Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

A few customization questions...

Locked

Started by jhouse on 31 Mar 2008, 4:06 PM · Views: 2,264

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

Post #1 by jhouse

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

Post #2 by 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.

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

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

kobra

Black Belt

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

Post #3 by kobra

  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

Zen-Venom Get Bitten

31 Mar 2008, 4:54 PM
#4
haredo avatar

haredo

Totally Zenned

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

Post #4 by haredo

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

31 Mar 2008, 5:11 PM
#5
jhouse avatar

jhouse

Zen Follower

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

Post #5 by jhouse

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,190
Plugin Contributions:
0

Post #6 by haredo

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

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

jhouse

Zen Follower

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

Post #7 by jhouse

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,190
Plugin Contributions:
0

Post #8 by haredo

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:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

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

Post #9 by afo

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.

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

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

jhouse

Zen Follower

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

Post #10 by jhouse

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

Post #11 by jhouse

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

Post #12 by jhouse

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,190
Plugin Contributions:
0

Post #13 by haredo

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.