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
Views: 1,420
Zen Follower
How can I move these to the footer? I like them, but they're too much up top.
Thanks,
Christy
Totally Zenned
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 -->
Totally Zenned
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) ...
Totally Zenned
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...
Totally Zenned
: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:
Zen Follower
Thanks guys! That was perfect!
Zen Follower
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
Totally Zenned
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?
Zen Follower
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.
Totally Zenned
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?
Zen Follower
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:
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?
New Zenner
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
Zen Follower
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.
New Zenner
Thanks :D
Fields marked required must be completed.
Tell staff why this post should be reviewed.