Forums » Customize

Remove elements from home section

charlieg27
UNITED STATES
2010-07-25 19:58:49
Permalink Post
 

I'm having a little trouble with removing some unwanted elements from the home/spash page of my indexhibit site. I customised the 'container' element in my style.css file to give it a coloured bg and border, but now this container also appears on all other sections. This isn't so much of a problem (they will all use the same format) except I want the main page not to include this box with the border. I did dig around the forum and found a couple of threads which seemed like they contained solutions, but they didn't work.

The site is here: http://www.cmgdesign.co.uk/index

As you can see on that page, there is a big black box with nothing in it, however if you go to http://cmgdesign.co.uk/index/index.php?/graphics/third-space-campaign/ you will see why I need the box... Preferably I want to just remove it altogether from just my main page, but other more complicated solutions would be welcome...

Vaska A
UNITED STATES
2010-07-26 12:13:02
Permalink Post
 

I think this will work...because you only have one page in your 'other' section...which is also the root section. And, section #1.

You can style things like...

  1. body.section-1 #content .container { ... }

And change the output/styles only for that page/section.

charlieg27
UNITED STATES
2010-07-26 15:25:31
Permalink Post
 

Thanks a lot, that works, was a lot more simple than I figured - I was actually trying very similar code already but was referencing the specific page rather than the whole section, so that's why it didn't work before.

And there are actually other pages in the "Other" section, they're just within an expandable menu - but I can just move them to a new section, then hide the one with the home page from the menu :) Thanks again!

Vaska A
UNITED STATES
2010-07-26 16:34:32
Permalink Post
 

Unless you add something to the template to reference an individual page (which isn't hard to do) it's not possible. So, the section is the way to go - in your case it works but it clearly wouldn't work all the time.

  1. <body class='page_id_<%id%>'>

Something along those lines is the way to be more specific... ;)

charlieg27
UNITED STATES
2010-07-26 16:59:52
Permalink Post
 

How would i then reference the exhibition in the styles CSS sheet? Like this?

  1. body.[name of exhibition taken from URL] #content .container { ... } 

? Or without the body. at the beginning?

Sorry if it should be obvious, though i've done a bit of CSS coding before i'm still trying to get my head around the way everything works with the indexhibit structure.

Showing 1 - 5 of 5 posts in Forum > Customize > Remove elements from home section
 

You need to be logged in to post.