Switched themes, now paragraph formatting wrong
-
Hi
I have just switched to a new theme, but the formatting of every blog entry is now gone – no paragraphs nor linefeeds.
My old theme used \n or \n\n to separate paragraphs, and they were displayed correctly in the blog website – paragraphs and all.
When I look at the database and look at the post_content field in wp_posts there are no
nor <p></p> for all entries, but loads of \n separating the paragraphs. When I activate the OLD THEME each blog entry is correctly displayed.However, activating my new theme is a different story – the new theme does not like simple \n, it wants <p></p> – needless to say that all posts of the entire Blog, when loaded have no line breaks or paragraphs – it is one long chain of words – no paragraphs and line breaks at all.
This does NOT look good, see https://www.barrett.com.au/blogs/SalesBlog/ . The article on top is correctly formatted, but the articles below (and all other articles) e.g. “https://www.barrett.com.au/blogs/SalesBlog/2014/2977/sales-attitudes/coming-full-circle-the-ripple-effect-of-doing-good/” have no spaces whatsoever.
When I load one of the “stuffed” articles into the editor, then save it (with “stop removing <p> tags” set/ticked for TinyMCE) then the article will appear properly – with the proper paragraphs.
Now reading the wordpress forums it seems common knowledge that this how WordPress handles paragraphs, \n or \n\n (i.e. linefeeds) – so I am NOT sure whether my NEW theme should handle the linefeeds in the same manner.
Is it?
Now I could edit every article, I could not care less whether I need \n or <p></p>, I just want all of my articles to be proper formatted.
But I do not want to edit 300+ articles to do so.
Is there any other way to do this?
Please help!
Thanks
Jobst
- The topic ‘Switched themes, now paragraph formatting wrong’ is closed to new replies.