I have multiple userlists on my site. The main / default one is fine - it formats as normal, and picks up all CSS from the Joomla template without issue:
I have an Article (Content) that calls a series of smaller Userlists inside it, to display them as one extended page. For some reason, this is not picking up the formatting from the Joomla template, or rather, I think that CB's CSS is taking priority over Joomla's for just this scenario, for some reason:
CBs CSS and JS always loads after Joomlas (in all cases) and should be the case for every Joomla extension. Ensure your CSS selectors are strong enough to account for this. Your issue appears to be due to adding CB CSS overrides through your Joomla template, which may load before or after CBs headers depending on when CB is loaded into the buffer (in this case it's loaded late as Components Anywhere is loading CB and not Joomla directly). Try adding CB specific CSS overrides using CBs built in CSS override functionality as shown below.
Your alternative is to make your CSS selectors stronger. For example in your override code you've ".cb_template .cbUserListDiv.cbUserListLayoutList > .cbUserListRow:hover" to override the hover background color, but it's the exact same selector in CB so which is used comes down, entirely, to load order of the CSS files. If you increase its selector strength to ".cb_template.cbUsersList .cbUserListDiv.cbUserListLayoutList > .cbUserListRow:hover" it'll always override as it's has more weight.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Got it, thank you. This is an old, old site - back from the Joomla 1.0 days (!), and has evolved several times. The CSS is a legacy from before the current CB version, and needs to be migrated to its own template eventually. This just reinforces that need to do it properly.