Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Oct 2006
    Location
    Maine
    Posts
    51
    Plugin Contributions
    0

    How to remove category index?

    Hi,
    I'm setting up my first ZenCart and I've spent the last two weeks customizing my site and reading through the FAQs, but I still have a couple problems. I don't know how to remove the categories from the top of the page (just below my logo). I figured out how to remove them from the sidebar, but that's not what I want to do. Also, I've replaced all the buttons but can't figure out how to change the 'Search' button at the top of the page.
    Here is a link to my 'work-in-progress' site.
    http://www.theoccasionalcake.com/Cart/
    Can someone help me, please?
    Thanks, Amy

  2. #2
    Join Date
    Oct 2006
    Location
    England
    Posts
    11
    Plugin Contributions
    0

    Default Re: How to remove category index?

    HI Amy, Depending on your template, you can remove the search feature and categories from the top section by adjusting the tpl_header.php file in your templates directory.
    Amplify Web Services
    http://www.projectamplify.net
    ZenCart and Joomla Development, Hosting and Training Services.

  3. #3
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: How to remove category index?

    Quote Originally Posted by ALSMonarch View Post
    Hi,
    I'm setting up my first ZenCart and I've spent the last two weeks customizing my site and reading through the FAQs, but I still have a couple problems. I don't know how to remove the categories from the top of the page (just below my logo). I figured out how to remove them from the sidebar, but that's not what I want to do. Also, I've replaced all the buttons but can't figure out how to change the 'Search' button at the top of the page.
    Here is a link to my 'work-in-progress' site.
    http://www.theoccasionalcake.com/Cart/
    Can someone help me, please?
    Thanks, Amy
    Hi Amy,

    An easier way to remove the category display just beneath your logo, in Admin go to

    Configuration > Layout Settings > Categories - Tabs Menu ON/OFF

    and turn it off.

    Also, doing it this way you won't have to worry about any overrides or changes you have to re-construct next time you upgrade.

    Cheers,

    Becky "-)

  4. #4
    Join Date
    Oct 2006
    Location
    Maine
    Posts
    51
    Plugin Contributions
    0

    Default Re: How to remove category index?

    Hi Borat,

    Thanks for the reply. I have been playing around with the tpl_header, as I assumed that's where the changes should be made. I found 'categories tabs navigation display' and tried to comment-out that section, but it won't let me.
    I am happy with the placement of the search bar, I just need to replace the 'Search' button with one to match the rest of my buttons.
    How should I change the tpl_header to remove the tabs?

    Thanks!
    Amy

  5. #5
    Join Date
    Oct 2006
    Location
    Maine
    Posts
    51
    Plugin Contributions
    0

    Default Re: How to remove category index?

    Ooops, nevermind about the top category tabs. I figured it out.
    Now I just need to know how to change the Search button.

    Amy

  6. #6
    Join Date
    Oct 2006
    Location
    Maine
    Posts
    51
    Plugin Contributions
    0

    Default Re: How to remove category index?

    Thanks Becky,

    Your way was easier than the hack job I did removing the tabs from the script!!!


    Amy

  7. #7
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: How to remove category index?

    Quote Originally Posted by ALSMonarch View Post
    Thanks Becky,

    Your way was easier than the hack job I did removing the tabs from the script!!!


    Amy
    No problem!

    Ok, here's how to change the Search button in the header using the override system:

    1. If you do not have this file, copy it from the classic template

    ... includes/templates/[your template name]sideboxes/tpl_search_header.php

    2. Open the file and change this line (roughly Line 19):

    <input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />';

    to this....

    <input type="image" src="[your path-to-image-etc here]" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />';

    You'll have to modify styling as necessary, of course.

    Hope that works for you!

    Cheers,

    Becky

  8. #8
    Join Date
    Oct 2006
    Location
    Maine
    Posts
    51
    Plugin Contributions
    0

    Default Re: How to remove category index?

    Hi Becky,



    In tpl_search_header I changed line 19 to this,
    <input type="image" src="includes/templates/simple_zen/buttons/english/button_quick_find.gif" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />';
    and I uploaded it. I also uploaded my image. However, it didn't change. Did I enter my image path wrong?

  9. #9
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: How to remove category index?

    Quote Originally Posted by ALSMonarch View Post
    Hi Becky,



    In tpl_search_header I changed line 19 to this,
    <input type="image" src="includes/templates/simple_zen/buttons/english/button_quick_find.gif" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />';
    and I uploaded it. I also uploaded my image. However, it didn't change. Did I enter my image path wrong?
    Hmmm... did you edit this file:

    ... includes/templates/simple_zen/sideboxes/tpl_search_header.php ?

    From what I am seeing, I'm thinking you didn't edit that file, maybe you edited it in another template directory?

    I tested it here and it works fine on my local installation.

    Becky

  10. #10
    Join Date
    Oct 2006
    Location
    Maine
    Posts
    51
    Plugin Contributions
    0

    Default Re: How to remove category index?

    Oh boy! You were right! I don't know what I edited, but it wasn't the right file. Now I've got it up. One more question, though. Do you know how I can get the text box to line up with the image?

    http://www.theoccasionalcake.com/Cart/

    Thanks Becky!

    Amy

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v138a How remove button from index page
    By kobra8 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Feb 2014, 01:37 PM
  2. How to remove left column on index page?
    By Alexiss in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Oct 2011, 09:33 AM
  3. Replies: 2
    Last Post: 31 Oct 2006, 08:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg