Jump to content

Archived

This topic is now archived and is closed to further replies.

JudithKlinger

Paragraph Tags in Posts

Recommended Posts

JudithKlinger

I'm having a problem with post formatting that I never encountered before PL5. 

I keep losing my paragraph formatting. I've gone in manually 4 and 5 times...adding in the <p></p> tags, updating...then I go to the visual editor or the pagebuilder and when I go back..they're gone and so is the 

formatting. In digging around I think it has to do with the wpautop filter. See this: https://codex.wordpress.org/Function_Reference/wpautop

 

I'm in the process of converting pages from DMS to PL5 and something in PL5 seems to be interacting with the formatting. I'm also getting other strange formatting issues (random <i></i> with no text n between, etc.)

Frankly, I don't care if I need to manually add <p> or not... I just need the formatting to stick. 

Thanks. J

 

Share this post


Link to post
Share on other sites
Danny

Switching back and forth between the visual and text editor on the WordPress content editor, always causes this. If you're going to be adding HTML to your pages/posts, use only the text editor.

This isn't an issue with PL5 or any PageLines product, you can reproduce this issue on any WordPress theme. See here for an ongoing discussion - https://wordpress.org/ideas/topic/disable-html-rewriting-in-visual-editor


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
JudithKlinger
9 minutes ago, Danny said:

Switching back and forth between the visual and text editor on the WordPress content editor, always causes this. If you're going to be adding HTML to your pages/posts, use only the text editor.

This isn't an issue with PL5 or any PageLines product, you can reproduce this issue on any WordPress theme. See here for an ongoing discussion - https://wordpress.org/ideas/topic/disable-html-rewriting-in-visual-editor

Thanks Danny. Appreciate the link and I'm aware of this issue. The difference is that I never needed to use the <p> tags before and now I do. 

In DMS it wasn't an issue and now it is.

Share this post


Link to post
Share on other sites

  • Similar Content

    • StuLeeUK
      By StuLeeUK+
      Good Afternoon,
      Could anyone help with a small issue I'm struggling with please? I've posted about this before but didn't actually get an answer that related to the matter to be able to fix it.
      Okay - I am working on this site: www.couriers.tv
      I have used 'Elements' at the top and 'Lander' further down - but unfortunately they both set the main text as 'H1' headings. I believe this is bad for search engines and I would like to adjust the Lander to be an 'H2' but I have no idea where to start?

      Any help would be very welcome, thanks.
    • John Olsson
      By John Olsson+
      Hello, how do I show tags in WP-content-section... or what am I missing out? 
    • Dana
      By Dana+
      Hi DMS team,
      Please help out on how to add Post tags to the bottom of each post. Tried looking at the hooks tutorials but not sure what to do here.
      Thanks a lot.
       
       
       
       
    • dawsonbarber
      By dawsonbarber+
      Currently, the main heading for an element is automatically wrapped with a <h1> tag.
      That's okay if the content its wrapping around is, in fact, meant to be the main heading for the page.
      But I suspect there may be people who will already have a heading on the page wrapped with <h1> tags, so that's going to create a bit of a semantic issue (theoretically, from what I understand about HTML5 spec, it is possible to have more than one <h1> tag on a page, but you really need to know what you're doing).
      So I think that designers should have the option to select that tag for each text part that makes up an element.
      Additionally, if the main heading of an element is being used as the <h1> heading for a page, if designers are able to select the tag, then it should automatically wrap the <h1> tag with <header> tags (and maybe even the appropriate classes - e.g., entry-heading, entry-title).
      When you look at the other text parts that make up an element, you see that the subheading is automatically wrapped in a <h3> tag.
      If the main heading tag is a <h1> tag (as it is at present) then, logically/semantically, the subheading should be wrapped in <h2> tags or <p> tags (perhaps it could be set conditionally - depending on designer selection of main heading).
      Further, the subheading <h3> tag actually wraps around <p> tags that contain the subheading content.
      That makes no sense whatsoever.
      Finally when you specify a tag in the paragraph textbox of an element, it doesn't actually that tag as HTML. Instead, it adds a class - using the specified tag (e.g., class="h2") to a span.
      That also does not make sense.
    • eusebius
      By eusebius+
      Hello,
      Is there a way to mass apply a template to all tag archives?
      On my site, all tag archive pages claim they are using the Default template, but they look nothing like the Default template. I'm having a difficult reapplying that template to those pages without going through each one.
      Thanks in advance
      Thank God, I found the answer.
      My question was a bit more complex than I thought. It turns out that, when the Powerloop section is enabled, it overrides the queries for individual tags so that the page type reads pl_powerloop_TAG. It changes for each tag, which makes it impossible to target with a single template.
      When I disabled Powerloop (which I don't need anyway, since I use Toolset), all the tag queries reverted to normal and I was able to target that specific type with a template easily.
×