Keyword

K2 content module - Alternative layout?

  • Richard Pigden
  • Richard Pigden's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #121293 by Richard Pigden
K2 content module - Alternative layout? was created by Richard Pigden
Hi

I want to override the mod_k2_content module H3 title, not the item titles, but the actual module title.

On normal Joomla modules there is a field for "Alternative Layout" where you can adjust these titles. In my case I want to add font awesome <i> code to the module title so there is an icon next to the title.

As far as I can tell this field is not yet available in K2 modules so I'll use CSS background images, but would be a nice to have if any of the dev's spot this for future - unless of course I've missed something?!!!

If anyone knows a way to achieve this I'd love to know.

Thanks

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #121294 by Yiota
You can use a :before element to the h3 module title and add the icon you like that way, without having to use extra elements.
i.e. h3.moduleTitle:before {content:"the icon's content";}

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


Powered by Kunena Forum