How can I move these to the footer? I like them, but they're too much up top.
Thanks,
Christy
How can I move these to the footer? I like them, but they're too much up top.
Thanks,
Christy
Find a file called tpl_header.php (includes/templates/yourtemplate/common/tpl_header.php) and find the part where it reads:
Copy it.Code:<!--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-->
Find a file called tpl_header.php (includes/templates/yourtemplate/common/tpl_footer.php) and paste in in just above where it says:
Code:<!--eof-navigation display -->
Nick
iszent.com
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...
20 years a Zencart User
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.
![]()
Nick
iszent.com
Thanks guys! That was perfect!
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
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?
Nick
iszent.com
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.
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?
Nick
iszent.com