Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding image landing page when selecting CATEGORY

Adding image landing page when selecting CATEGORY

Locked

Views: 870

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 Apr 2010, 10:18 PM
#1
techiegirl avatar

techiegirl

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Adding image landing page when selecting CATEGORY

So I'm currently customizing a template and can't figure out how to display a **landing page **when a category is selected. I have disabled the subcategories and new products from displaying, but wasn't sure where or how to insert code to display a landing page. The landing pages are images with promotional info for each category. The URL is http://tregreekboutique.com/zencart/.

17 Apr 2010, 10:29 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Adding image landing page when selecting CATEGORY

The landing pages are images with promotional info for each category
Place the html code in the category description when you creaqte/edit the category

17 Apr 2010, 11:36 PM
#3
techiegirl avatar

techiegirl

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Adding image landing page when selecting CATEGORY

Okay that worked, thank! But I couldn't get the image to show without uncommenting the code in tpl_index_categories.php which displays the subcategories and new products listing.

I just want the category title and the image to appear on the landing page ONLY. I don't want the subcategories or the new products to appear on the main page. Here is the link where I have added the image for the landing page:
http://tregreekboutique.com/zencart/index.php?main_page=index&cPath=1_10

Any ideas?

18 Apr 2010, 12:50 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Adding image landing page when selecting CATEGORY

Bit of a kludge but easy - in your stylesheet add this

.categoryListBoxContents {
        display: none;
        }
18 Apr 2010, 1:23 AM
#5
techiegirl avatar

techiegirl

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Adding image landing page when selecting CATEGORY

Worked perfectly! Thanks so much!

Now I have to tackle creating drop down hover menus for the categories in the header menu.

18 Apr 2010, 1:27 AM
#6
kobra avatar

kobra

Black Belt

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

Re: Adding image landing page when selecting CATEGORY

Now I have to tackle creating drop down hover menus for the categories in the header menu.
Been done - no need to re-invent
Check the free software addons link above left