Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] Formatting Userlist(s) - Component vs. Called in Content

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
7 years 10 months ago - 7 years 10 months ago #292159 by gjschaller
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:

template.knightrealms.com/forum/userlist.html

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:

template.knightrealms.com/main-menu/marshals.html

This wasn't always the case - I suspect this behavior started with an update, and I just noticed it now.

Is this a bug, or can something be done to change this and make the second setup apply the Joomla CSS template as priority?

Thank you!

Geoffrey Schaller
Technical Officer
www.knightrealms.com
Last edit: 7 years 10 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 10 months ago #292181 by krileon
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.

www.joomlapolis.com/blog/kyle/18711-template-css-overrides-made-easy

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.

Please Log in or Create an account to join the conversation.

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
7 years 10 months ago #292194 by gjschaller
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.

Thank you for the clarity!

Geoffrey Schaller
Technical Officer
www.knightrealms.com
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

  • gjschaller
  • gjschaller
  • OFFLINE
  • Posts: 169
  • Thanks: 21
  • Karma: 7
7 years 10 months ago #292307 by gjschaller
Apparently, it was the Components Anywhere plugin - an update just resolved this.

Thank you for the guidance!

Geoffrey Schaller
Technical Officer
www.knightrealms.com
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum