| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Image for Category Description | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I have seen cart sites using an background image on category pages and I'm looking for a way to place a background image for each main category and have the title and text show up on top.
Does any one have any suggestions as to how to do this? I have attached an example for an idea of what I'm looking to achieve.
__________________
Cyber Matrix ------------------- X-Cart 4.1.9 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() You can add these images as category images for each category. Then in subcategories.tpl you can set style to use as a background the image of this category
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() This thread describes something that might be similar to what you are trying to do
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() I wanted to post how I was able to accomplish this for anyone else wanting to do it. Once I made these changes all I had to was create a banner for each main category and upload the banner in the respected category.
I'm using CDSEO Pro on the site and I have created another template named dialog_h1.tpl to pull all the information for the categories I want to show the banner for and have an if statement not to show on the cats I do not want a banner for. You should be able to get the idea from the code below if you are not using CDSEO Pro. In your customer/main/subcategories.tpl look for Code:
and I replace it with Code:
which allows me to have more control over the title, you can find more information at https://www.websitecm.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticl eid=71 this is my dialog_h1.tpl with the if statement for what cats I want the banner to show Code:
Here is the CSS that I put in the skin1.css you can modify it to your liking Code:
Hope this helps
__________________
Cyber Matrix ------------------- X-Cart 4.1.9 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Here is an example of what it looks like
__________________
Cyber Matrix ------------------- X-Cart 4.1.9 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|