Keyword

line break on item title

More
10 years 11 months ago - 10 years 11 months ago #119936 by MIRON
line break on item title was created by MIRON
Hello,
How display the item tiltle on two lines ?
Thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119937 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: line break on item title
Hello Miron,

You can set the max-width of the title element.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
10 years 11 months ago #119938 by MIRON
Replied by MIRON on topic Re: line break on item title
thanks for your answer.
How ? For different item ?
Thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119939 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: line break on item title
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

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
10 years 11 months ago #119940 by MIRON
Replied by MIRON on topic Re: line break on item title
Thanks for your answer.
Do you know a plugin for doing that ?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119941 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: line break on item title
There is no need for a plugin, it is a simple change in your CSS.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
10 years 11 months ago #119942 by MIRON
Replied by MIRON on topic Re: line break on item title
Hello,
I understand.
But each time for different item the max width will be different.

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

More
10 years 11 months ago #119943 by MIRON
Replied by MIRON on topic Re: line break on item title
No idea ?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119944 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: line break on item title
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum