Forums

4.4 extra <p tags? (5 posts)

  1. robotskirts
    Member
    Posted 4 years ago #

    Just upgraded to 2.3.1 from 2.3 and upgraded sideblog 4.3rc2 (I think that was the number) to 4.4. Now the %content% is inexplicably wrapped in a paragraph tag. Before my entries were the li character followed by the content followed by the date and permalink. Now it's li character, line break, content, line break, date and permalink.

  2. Barfly
    Member
    Posted 4 years ago #

    I am having the same problem - any resolve for this? I have little php knowledge.

  3. Nellie
    Member
    Posted 4 years ago #

    Same problem. Looks like it's unfixable thus far. :(

    EDIT: I just added display: inline; to my asides div.

    .asides p {
    display: inline;}

    It doesn't get rid of the added <p> tags, but it does format it to look like it doesn't have <p> tags.

  4. shawnday
    Member
    Posted 4 years ago #

    I don't know if this helps anyone, but I simply removed the wpautop function from the plugin and this gave me the formating that I needed.

    I simply want a bunch of dense, short single line asides and this removes the <p> added by the wpautop function and I added a <br> after the sidebar formating via the plugin option page.

    Change line 142 from

    $replacements[] = wpautop($sideblog_content->post_content);

    to

    $replacements[] = $sideblog_content->post_content;

    This may well break other things, but works for me.

  5. ambimb
    Member
    Posted 4 years ago #

    Shawnday: Thanks so much! I hated that "autop" thing but I never would have figured out how to fix it w/out your tip.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags