Keyword

Read More breaks HTML formatting

  • Charles Gibson
  • Charles Gibson's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago - 8 years 2 months ago #156161 by Charles Gibson
Read More breaks HTML formatting was created by Charles Gibson
I've been playing around with a K2 test site and I'm really, really impressed with it but I'm trying to figure out what is happening when I add a "read more" to an item. The text before the the read more is larger -- like <h1> size large -- and then text after the read more is normal size (as it should be.)

Example #1, with "read more" (and broken text):

Example #2, without "read more" (text is normal):

Example #3: this is what the HTML code looks like for example #1:

URL for the page (Example #1): test.newriverwv.com/lodging/item/3-accommodations-slopeside-at-winterplace

I don't see any weird in the HTML and I also tried using a different template but the result was the same.

Any help figuring this out would be greatly appreciated! Thanks.
Last edit: 8 years 2 months ago by Charles Gibson.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156172 by Krikor Boghossian
Replied by Krikor Boghossian on topic Read More breaks HTML formatting
The larger text is the introtext (the lead).
The rest (after the readmore) is the item's full text.

When you do NOT insert the read more, then all text is being treated as normal text.

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

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

  • Charles Gibson
  • Charles Gibson's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #156183 by Charles Gibson
Replied by Charles Gibson on topic Read More breaks HTML formatting
Thanks for the reply and info, but is there a way to make the introtext look he same font size as the rest of the text and and to loose the bolding? I don't see anyway within K2 or Joomla of getting rid of the The BIG font and bolding in the introtext. I hope there is because the huge and bold characters really is NOT the look I'd want. Thansk.

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

  • Charles Gibson
  • Charles Gibson's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #156184 by Charles Gibson
Replied by Charles Gibson on topic Read More breaks HTML formatting
Thanks for the reply and info, but is there a way to make the introtext look he same font size as the rest of the text and and to loose the bolding? I don't see anyway within K2 or Joomla of getting rid of the The BIG font and bolding in the introtext, e.g., changes to font size made with the editor get over-ridden, etc.

I hope there is, because huge and bold characters is something I do NOT want within the item's description.

Thansk.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156193 by Krikor Boghossian
Replied by Krikor Boghossian on topic Read More breaks HTML formatting
You can remove all the introtext's (.itemIntrotext) styling from the k2.css file.
Remember to override the k2.css file.
Copy it from the /components/com_k2/css/ folder and paste it to your template's /css folder.

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

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

  • Charles Gibson
  • Charles Gibson's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #156222 by Charles Gibson
Replied by Charles Gibson on topic Read More breaks HTML formatting
Thanks very much! That did the trick.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156229 by Krikor Boghossian
Replied by Krikor Boghossian on topic Read More breaks HTML formatting
You 're welcome :)

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

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

More
7 years 8 months ago #160149 by Rob
Replied by Rob on topic Read More breaks HTML formatting

Krikor wrote: You can remove all the introtext's (.itemIntrotext) styling from the k2.css file.
Remember to override the k2.css file.
Copy it from the /components/com_k2/css/ folder and paste it to your template's /css folder.


One thing to add is to make sure to change the relative paths listed in k2.css for the various image files to match where k2.css is moved to. Before doing this the first thing I noticed was that the rating star images disappeared.

for example from this:
.itemRatingList .itemCurrentRating {background:transparent url(../images/system/transparent_star.gif) left -1000px repeat-x;}

To this:
.itemRatingList .itemCurrentRating {background:transparent url(../../../components/com_k2/images/system/transparent_star.gif) left -1000px repeat-x;}

-Rob

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #160244 by Krikor Boghossian
Replied by Krikor Boghossian on topic Read More breaks HTML formatting
Hey there,

You can move the /images/ folder in your template's folder.

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