Closed (fixed)
Project:
Colorbox
Version:
6.x-1.0-beta7
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2010 at 14:43 UTC
Updated:
21 Nov 2010 at 15:22 UTC
Hi,
is it possible to hide the title ?
I've tried all of the six style (default + example1..5), but all contains title.
I've added the following to my custom css, but the title is still there...
/*#cboxTitle {
display: none;
}
How to hide the title ?
Comments
Comment #1
mandreato commentedSorry, the custom css was:
Comment #2
hutch commentedThat's because the display styling is inline:
You *might* be able to get rid of it by writing a piece of jquery js to override it, this would have to run after the colorbox code, not so easy but might work if put in the footer.
This is untested:
A hack but it might be worth a try ;-)
Comment #3
mandreato commentedThank you hutch for the advice, but I'm a newbie... Where exactly have I to inject that js code ?
Maybe somewhere in the ...\sites\all\modules\colorbox folder ?
Comment #4
hutch commentedProbably the easiest way would to put it in your theme's page.tpl.php, wrapped in
Put it at the bottom, just above the body close tag
No guarantee that it will work though.
Comment #5
mandreato commentedUnfortunaly it doesn't work.
I've added the following code in the page.tpl.php of my theme (I'm sure it's the right one because, adding a fake wrong syntax, it does raise an error message on the browser):
but the title is still there.
Comment #6
frjo commentedIn my testing adding "!important" to the CSS declaration works:
Comment #7
mandreato commentedYes it works !
Thank you for mentioning the
!importantstatement !