Isolating custom modules for specific pages (go back »)
June 5 2007, 7:25 AM
I added some element identifiers for your personal pages. This means that with clever css'ing you'll be able to isolate where to display your custom modules. In another words, you'll be able to turn on and off a custom module depending on which page you're on. The four identifiers are as follows: profile; blog; friends; photos.
On my pages, I have custom modules for profiles, blog, and photos, but not friends (since the friends page doesn't really "support" the module look). I achieved this by adding a class to the custom module (custombox), and then this code:
#friends div.custombox { display:none; }
The code above will only affect the friends page because it's the only page with the identifier "friends". Hmm, I wish I could paste some code here using BBcode, I guess in the future we'll scrap FCKeditor and I'll build my own editor supporting BBcodes.
In CreateBlog
Comments
Displaying 1 - 5 of 5 comments
I put the code into my css and my custom module (music) still appears on my friends page. I must be doing something wrong. D:
u might want to change to so the code above can work
ur right the friends page doesn't support it well... becomes a mess
but this is awesome
is there a way to block just one for certain pages instead of all the custom modules u have on your page?
Add Comment
You must be logged in to comment
Statistics
Comments | 5 |
Page views | 3164 |
Custom Module
Side Module (footer HTML)
Main Module (header HTML)
Footer (footer HTML)