-
AuthorPosts
-
fbernardello Friend
fbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
November 17, 2015 at 8:37 am #726181Dear support,
I would like to change the background colour of some modules; in particular, I’d like to set the modules on the right bar with the same “grey” used as default in the module “sidebar”.How can I do it?
Thanks in advance,
Federicopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 17, 2015 at 9:39 am #754699Hi
Try to add this to your custom.css file
.magazine-list .t3-sidebar {
background:#f8f8f8!important;
}Saluti
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
November 17, 2015 at 11:18 am #754705Dear Pavit,
it’s working, but not on Banner-1 module (based on JACM).Isn’t it possible to set the background color module by module?
In some cases I would prefer to avoid…Thanks!
Federico
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 17, 2015 at 11:42 am #754708Hi
If you want to add also to the banner position then add this
.magazine-featured-links .banner {
background:#f8f8f8!important;
}.banner belongs to the .magazine-featured > .col css so if you want to add the background to the whole column add this
.magazine-featured > .col {
background:#f8f8f8!important;
}<blockquote>Isn’t it possible to set the background color module by module?</blockquote>
You should create an override class suffix and then apply it to the Module Class Suffix field
i.e.
.magazine-featured-links .banner .myclass so the suffix to apply to the single module should be myclassTake a look at the Joomla documentation HERE
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
November 17, 2015 at 2:56 pm #754716Dear Pavit,
if I use:
.magazine-list .t3-sidebar {
background:#f8f8f8!important;
}
and
.magazine-featured-links .banner {
background:#f8f8f8!important;
}
It works, but with some problems:
1 – The background of the events box in home page changed to grey (see attachment 1)2 – In long pages made with JACM, the background ends when the item in the sidebar end (see attachment 2)
If I use this code:
.magazine-featured > .col {
background:#f8f8f8!important;
}
It breaks the page background (see attachment 3)
Thanks in advance,
Federicopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 17, 2015 at 4:45 pm #754722You can create custom override class suffix and apply to each module
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
November 18, 2015 at 8:48 pm #754863<em>@pavit 502692 wrote:</em><blockquote>You can create custom override class suffix and apply to each module</blockquote>
Could you please provide an example?
Regards,
FedericoTomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
November 18, 2015 at 9:33 pm #754864<em>@fbernardello 502908 wrote:</em><blockquote>Could you please provide an example?
Regards,
Federico</blockquote>Perhaps the following may be helpful —-> http://id.joomlart.com/forums/topic/how-to-use-module-class-suffix-in-joomla/
-
AuthorPosts
This topic contains 8 replies, has 3 voices, and was last updated by TomC 9 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum