Read more/introtext breaks page columns

GK User
Thu Jul 04, 2013 1:50 am
I have some editing done to the css and the category_item.php page and was happy with what things looked like until I tried to add introtext on my articles.

When I add introtext with a read more break in a K2 article, the category and user/author page breaks.

Here is a picture with the read more introtext off:
http://oi43.tinypic.com/2nleezs.jpg

Now here is a picture with it on, and what it does to the right column:
http://oi44.tinypic.com/5zkryh.jpg

A couple things I know about what's going on. If I set introtext on, and leave the HTML introtext code in the category_item.php file, it works fine.
The moment it breaks is when I use the READ MORE function when making an article to specify what text to use as introtext.

Again, if I'm using introtext as default few characters at the start of the article it works fine, but using it with the read more break messes up the page.

The only css override affecting the "catItemIntroText" and "catItemBody" is to remove the 4px padding, nothing else.
User avatar
Senior Boarder

teitbite
Fri Jul 05, 2013 12:16 am
Hi

Can You please show me the page You have this problem with ? I think it may be becuase of cutting html elements in half, so html is incomplete and causing validation errors.
User avatar
Moderator

GK User
Fri Jul 05, 2013 1:27 am
I sent you a PM with the pages.

Thanks again.
User avatar
Senior Boarder

teitbite
Sat Jul 06, 2013 12:58 am
Hi

Except the fact I can see it's broken I do not see a problem in code :/

I've disabled template override of K2 and this problem remains. So looks like it's because a position page break was used in content. Here is the html code from the article:

Code: Select all
<div id="lipsum">
<p>INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT INTRO TEXT END.</p>
<hr id="system-readmore" />


as You can see if page break is used in this place than a closing tag for <div id="lipsum"> is missing and this article is causing the problem. Unfortunately this part is being handle by K2 itself, so I think the only way is to just be careful with using page break ;/
User avatar
Moderator


cron