Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category Links below the header

Category Links below the header

Locked

Views: 1,420

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
23 Aug 2009, 10:16 PM
#1
christymreed avatar

christymreed

Zen Follower

Join Date:
May 2009
Location:
Kelso, WA
Posts:
132
Plugin Contributions:
0

Category Links below the header

How can I move these to the footer? I like them, but they're too much up top.

Thanks,
Christy

23 Aug 2009, 10:32 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Category Links below the header

Find a file called tpl_header.php (includes/templates/yourtemplate/common/tpl_header.php) and find the part where it reads:

<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->

Copy it.

Find a file called tpl_header.php (includes/templates/yourtemplate/common/tpl_footer.php) and paste in in just above where it says:

<!--eof-navigation display -->
23 Aug 2009, 10:41 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Category Links below the header

niccol:

Find a file called tpl_header.php (includes/templates/yourtemplate/common/tpl_footer.php) ...

I think nick means:

Find a file called tpl_footer.php (includes/templates/yourtemplate/common/tpl_footer.php) ...

23 Aug 2009, 10:48 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Category Links below the header

Also... if you have not edited the tpl_header and tpl_footer files before, you probably will not have these in your CUSTOM TEMPLATE folder...

As we have not seen your website, I do not know what template you are using, and therefore do not know what your template's folders are called.

Nick is perfectly correct when he says that the edited FOOTER file must be placed in :-
includes/templates/yourtemplate/common/tpl_footer.php

... but you may not even have a folder called /common/ in your custom template yet.... let alone a tpl_footer.php file in there.

What nick is saying is that you need to use the zencart OVER-RIDES system for these types of edits. The over-rides system is an important aspect of zencart as it allows you to modify COPIES of important files, without altering the code in the CORE file.

Before you make any edits to a core file, let us know what your CUSTOM template is called. Then we can explain things a little better...

23 Aug 2009, 10:59 PM
#5
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Category Links below the header

:smile:

And I think what schoolboy is saying in his usual kind manner is that my answer was a bit sloppy! And he is right. All his points about the over-ride system are valid and important. Getting to grips with it will help you no end.

:blush:

23 Aug 2009, 11:05 PM
#6
christymreed avatar

christymreed

Zen Follower

Join Date:
May 2009
Location:
Kelso, WA
Posts:
132
Plugin Contributions:
0

Re: Category Links below the header

Thanks guys! That was perfect!

24 Aug 2009, 2:08 AM
#7
christymreed avatar

christymreed

Zen Follower

Join Date:
May 2009
Location:
Kelso, WA
Posts:
132
Plugin Contributions:
0

Re: Category Links below the header

Uh oh...something didn't work...at least I think it was something with this. Now I'm getting blank pages if I go to any of the category pages. I even put the old header and footer files back in and it's not working

24 Aug 2009, 7:34 AM
#8
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Category Links below the header

Sorry, Christy, but I don't think that has to do with this alteration. I may be wrong but I do not think so.

A couple of reasons. There is nothing in the code that is dependent on the page. So, if it works on one page it will work on all pages.

If you have returned to the original files then it is unlikely to be anything in the changes.

It is much more likely that something else has gone astray! What else were you doing before it happened?

24 Aug 2009, 3:26 PM
#9
christymreed avatar

christymreed

Zen Follower

Join Date:
May 2009
Location:
Kelso, WA
Posts:
132
Plugin Contributions:
0

Re: Category Links below the header

The only other thing I was doing was entering category and product information with some basic html. I even tried taking all of the html out and loading a blank category with just an image, but got nothing. Weird. Wondering if I'm going to have to start over.

24 Aug 2009, 3:37 PM
#10
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Category Links below the header

Well, don't give up yet, would be my advice.

I am pretty sure it doesn't have to do with the alterations we made. I have a sneaking suspicion so put up with my questions....

Is this only happening on the product_listing pages (the one with all the products in a category)?

What does the home page look like? Is the category navigation where it should be?

Can you post a URL so we can get to grips with it?

24 Aug 2009, 4:39 PM
#11
christymreed avatar

christymreed

Zen Follower

Join Date:
May 2009
Location:
Kelso, WA
Posts:
132
Plugin Contributions:
0

Re: Category Links below the header

Ok, someone else suggested running the debugging thingy...did that, got this:

[24-Aug-2009 11:27:02] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/christyr/public_html/gothrosary/includes/languages/english.php:1401) in /home/christyr/public_html/gothrosary/includes/init_includes/init_templates.php on line 78
[24-Aug-2009 11:27:02] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/christyr/public_html/gothrosary/includes/languages/english.php:1401) in /home/christyr/public_html/gothrosary/includes/functions/functions_general.php on line 44

So it is something to do with the headers somehow. I know I haven't done anything to that functions file. I didn't mess with header stuff in the english.php file either. And the other file, init_templates isn't one I did anything to either. So I'm still stumped.

Line 78 of init_templates is blank. Above it (77) is the comment:

  • The actual template directory to use

Line 1401 of english.php is the last line and it's blank.

Line 44 of functions_general.php is also blank.

BTW I'm using Dreamweaver from CS4 for editing, but I really don't think it is tossing in extra stuff like some software does.

Any ideas or should I scrap it and start over?

26 Aug 2009, 2:14 AM
#12
jqpublic avatar

jqpublic

New Zenner

Join Date:
Aug 2009
Posts:
59
Plugin Contributions:
0

Re: Category Links below the header

christymreed:

How can I move these to the footer? I like them, but they're too much up top.

Thanks,
Christy

How would I go about removing them altogether? I have the categories on the side and I don't want them on the top too. Using classic template 1.38a

John

28 Aug 2009, 11:27 PM
#13
christymreed avatar

christymreed

Zen Follower

Join Date:
May 2009
Location:
Kelso, WA
Posts:
132
Plugin Contributions:
0

Re: Category Links below the header

John, if you haven't found it yet, you can turn those off in the Admin -> Configuration -> Layout Settings Look for "Categories-Tabs Menu Turn ON/OFF" And edit it to be 0.

7 Sep 2009, 1:00 AM
#14
jqpublic avatar

jqpublic

New Zenner

Join Date:
Aug 2009
Posts:
59
Plugin Contributions:
0

Re: Category Links below the header

Thanks :D