JoomlaWorks
Go!
Member Dashboard
Home
Extensions
Commercial
Frontpage Slideshow
Simple Image Gallery Pro
Free
K2
AllVideos
DISQUS Comments for Joomla!
IAKI (Import As K2 Image)
Quick Menu (for Joomla 4)
Simple Image Gallery
Simple RSS Feed Reader
Free On Github
Akismet for Kunena
Fill It Up
K2 Example Plugin
K2 Links for JCE
Rebuild K2 Image Cache (CLI utility for K2)
URL Normalizer
User Extended Fields for K2
Demos
Joomla Extension Demos
WordPress Plugin Demos
Labs
Joomla 3.x UTD
Web Apps
JSON 2 JSONP
Feed Reader (bookmarklet)
Device Info
Support
Documentation for Joomla Extensions
AllVideos
Frontpage Slideshow
Simple Image Gallery
Simple Image Gallery Pro
Get Help
Community Forum
Recent Topics
Categories
Create free account
Help Desk
Contact Us
About
Blog
Company
License & Terms of Service
Privacy Policy
My Account
COMMUNITY FORUM
Community Forum
Search the forum
Index
Recent Topics
Search
Log in
Username
Password
Log in
Remember me
Forgot your password?
Forgot your username?
Create an account
Forum
K2 Community Forum
English K2 Community
line break on item title
line break on item title
English K2 Community
8 replies
916 views
MIRON
13 years 2 weeks ago
#119936
Hello,
How display the item tiltle on two lines ?
Thanks
Copy link
Krikor Boghossian
13 years 2 weeks ago
#119937
Hello Miron,
You can set the max-width of the title element.
Copy link
MIRON
Topic Author
13 years 2 weeks ago
#119938
thanks for your answer.
How ? For different item ?
Thanks
Copy link
Krikor Boghossian
13 years 2 weeks ago
#119939
You need to edit (or override your k2.css) and if you are using the default CSS structure you need to edit this value
div.catItemHeader h3.catItemTitle for category listings
div.itemHeader h2.itemTitle for items
Copy link
MIRON
Topic Author
13 years 2 weeks ago
#119940
Thanks for your answer.
Do you know a plugin for doing that ?
Copy link
Krikor Boghossian
13 years 2 weeks ago
#119941
There is no need for a plugin, it is a simple change in your CSS.
Copy link
MIRON
Topic Author
13 years 2 weeks ago
#119942
Hello,
I understand.
But each time for different item the max width will be different.
Copy link
MIRON
Topic Author
13 years 1 week ago
#119943
No idea ?
Copy link
Krikor Boghossian
13 years 1 week ago
#119944
No really maybe you can use a fixed width for all titles or automatically insert a <br> element after a defined set of characters. This can be achieved with a jQuery script.
Copy link
Log in
or
create an account
to reply.