Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

3 piece background picture
Dom Rand
May 7, 2014 - 4:29 pm
Member Since: April 2, 2014
Forum Posts: 219
sp_UserOfflineSmall Offline

Ok (so many questions all the time)

I have a background image for my products, its just to make this particular page unique as its our best sellers.

The image consists of what can be broken down into header, body and footer. But it is one image.

What I am trying to do is make the header static at the top. Make the body responsive as its just black background, so it repeats the space as more products are added and the footer which remains static at the bottom of the page.


"Dont believe everything you read on the internet just because there is a picture with a quote next to it" Abraham Lincoln

Matthew Ogborne

May 8, 2014 - 10:17 am
Member Since: July 18, 2013
Forum Posts: 4565
sp_UserOfflineSmall Offline

Howdy Dom,

This will get you on the right lines, but you’ll need to fill in the codey * css parts to make this work.

What I would do is create a new attribute say “att_background” and then conditionally check this value, if it is set then force some inline CSS on the product page that changes the background image using the image url set in the attribute at product level.

A mock up of this is attached in PHP and you’d add this to the product view phtml template.


// Change the code over on the right if yours are different
$att_background = Mage::getResourceModel(‘catalog/product’)->getAttributeRawValue($_product->getID(), ‘att_background’, $storeId);

// Make sure that we have att_background entered
if( isset( $att_background ) && !empty( $att_background ) ) {

// And spill out the bullet points

$custom_css = "

<style type=’text/css’>

body {
background-image:url(‘" . $att_background . "’);

// spill it out onto the page
echo $custom_css;


"Selling an item online is easy, but making living from a business that sells online, well that’s something different entirely!"

Ultimo Magento Theme


Why Should You Join UnderstandingE?

  • Access to over 500 step-by-step video tutorials
  • +20 video courses available
  • Magento, M2E Pro, Magmi, eBay, Amazon & Design all covered
  • Everything is in 100% Plain English
  • Learn how to build your own multi-channel software for eBay & Amazon
  • Access to the community forums, meet fellow business owners like yourself

Join Now with 2 Clicks


Join now for less that £1 per day you can gain access to over 400 step-by-step video tutorials & learn how to build your very own multi-channel software.


Forum Timezone: Europe/London

Most Users Ever Online: 1012

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Jim @ Moogento: 688

Steve Froggatt: 514

Badeth - UE: 513

Jimbob: 453

Paul Cartwright: 414

Forum Stats:

Groups: 6

Forums: 37

Topics: 5222

Posts: 27488

Administrators: Matthew Ogborne: 4565, Dave Furness: 4606