Targeting Home Page With CSS


(Rahul Dhingra) #1

I wanted to target home page background but with docker body class background showing up on all pages I have found out that home page body does not have any unique class assigned to it. any solution ?

thanks


(Manthan Mallikarjun) #2

Try setting the background for these objects:
.docked
#main
.ember-application
#ember935
and
.ember-view

One of those should work…


(Kane York) #3

I’m pretty sure none of those uniquely identify the topic list, and matching on #ember935 is a fantastically horrible idea.

This requires a HTML change.


(Manthan Mallikarjun) #4

Oh, my mistake. I thought he wanted to set the background for all pages and not specifically the topic list.


(Rahul Dhingra) #5

html change means changing core template file?


(Michael Lythcott) #6

i was wondering this too. i need a unique body class name for the homepage only


(Jens Maier) #7

What do you mean with “homepage”? The page rendered for /? Because that’s a moving target and may be different for each forum. Perhaps /latest? But often times / and /latest are the same…