Forums / Templates, Stylesheets, Page Layout / Adding image behind item titles on product details page

Adding image behind item titles on product details page

Views: 607

Results 1 to 5 of 5
19 Jul 2012, 11:26 PM
#1
schobook avatar

schobook

New Zenner

Join Date:
Jul 2012
Posts:
52
Plugin Contributions:
0

Adding image behind item titles on product details page

I would like to know where I may add a background image for my item titles on the product details page. I already know the code on how to do it. I just need to know where in the stylesheet I can add it.

Example:
https://www.schobookcollectibles.com//index.php?main_page=product_info&cPath=65_68_73&products_id=319

I would like to add a image behind the title "Cell WA-018 Rare". Just like with the side-boxes titles.

Thank you,

20 Jul 2012, 12:55 AM
#2
maac2 avatar

maac2

New Zenner

Join Date:
Jan 2011
Posts:
70
Plugin Contributions:
0

Re: Adding image behind item titles on product details page

Product titles are wrapped in an H1 with an id "productName", so either edit that id in your stylesheet, or create product_info.css and add it there.

20 Jul 2012, 1:42 AM
#3
schobook avatar

schobook

New Zenner

Join Date:
Jul 2012
Posts:
52
Plugin Contributions:
0

Re: Adding image behind item titles on product details page

Thanks. The image does not seem to work for some reason, worked with other things but not this, so I used a border instead.

Thank you for you help.

20 Jul 2012, 11:29 AM
#4
maac2 avatar

maac2

New Zenner

Join Date:
Jan 2011
Posts:
70
Plugin Contributions:
0

Re: Adding image behind item titles on product details page

Check your config files, your base href has an extra '/' (so everything is .com//index.php) - the config examples that are in the zen-cart docs folder explain when to leave a trailing slash.
Also, your template name is "custom template" - I do not believe it's best practice to use spaces in folder names.

20 Jul 2012, 6:00 PM
#5
schobook avatar

schobook

New Zenner

Join Date:
Jul 2012
Posts:
52
Plugin Contributions:
0

Re: Adding image behind item titles on product details page

Yes about the double slash. I had contacted blue host about it but they did not do anything about it. I pretty much came up like that even before I went to edit my files. Thanks for the advise I edited public_html/includes/configure.php and it worked. Finally no more double slashes. Thanks a bunch!