Post by vimal » Mon Nov 23, 2009 4:41 pm

Hi All,

I want to do some promotion for Christmas and only want to change the background colour of the front page with something red.

How can I only change the front page colour and not all other?

Thanks!
Vimal.

www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel


Active Member

Posts

Joined
Wed Aug 26, 2009 8:54 am
Location - Sweden

Post by Qphoria » Mon Nov 23, 2009 10:12 pm

add this to your layout.tpl

Code: Select all

if (!$this->request->get['route'] || $this->request->get['route'] == 'common/home') {
<style type="css/text">
body {
background-color: RED;
}
</style>
}

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by AndyC » Tue Nov 24, 2009 9:05 pm

Hi Qphoria

You reply is very interesting and I was wondering if a similar method could be used to solve my problem where I am trying to change the colour of the item summary page depending on the category (blue for boys items and pink for girls).

This is my previous post http://forum.opencart.com/viewtopic.php?f=21&t=8071

I would imagine it would be possible using a similar method to the one above as it's basically manipulating the css.

Thanks

Andy

Newbie

Posts

Joined
Sat Nov 21, 2009 1:51 am
Who is online

Users browsing this forum: No registered users and 3 guests