Problem with More Info background image

General ShopSite user discussion

Problem with More Info background image

Postby skymill » Fri Nov 27, 2009 12:34 pm

I am using the "Curved." template. I have specified a background graphic for all of my pages. Everything works fine, even the Shopping Cart and Checkout pages. However selecting the same image for the More Info page (Store Preferences > More Info page) is not being recognized. I have figured out that it does not reference the path to the image like the other pages. I am not using any custom templates.

Here is the the source from the More Info page:
body {
margin: 20px auto;
background-image:url(backg40.jpg);
background-color: #8C866F;
text-align: center;
}

while this is the source from all other pages:
body {
margin: 20px auto;
background-image:url(http://domain.com/store/media/backg40.jpg);
background-color: #8C866F;
text-align: center;
}

Any suggestion as to how to fix this?

Thank you.
skymill
 
Posts: 21
Joined: Thu Oct 09, 2008 11:20 am

Postby robm » Fri Nov 27, 2009 2:27 pm

You will need to copy the include named "Curved_MoreInfo.css" to a custom named one, edit the custom include and change the line:

Code: Select all
[-- IF VAR.BackgroundImage --]  background-image:url([-- VAR.BackgroundImage --]);[-- END_IF --]


to:

Code: Select all
[-- IF VAR.BackgroundImage --]  background-image:url([-- OUTPUT_DIRECTORY_URL --]/media/[-- VAR.BackgroundImage --]);[-- END_IF --]


Then you can copy this custom named include to the same default name "Curved_MoreInfo.css" and it will override the default include on your next publish/regen.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby skymill » Fri Nov 27, 2009 3:46 pm

Thank you so much -- that worked perfectly!
skymill
 
Posts: 21
Joined: Thu Oct 09, 2008 11:20 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 106 guests