How to retain original post formatting on home page?
-
I am using the Expound theme (free version), my posts don’t display the correct formatting on the home page. The text is displayed unformatted, irrespective of paragraphing, bulleted/numbered lists, etc.
The blog I need help with is: (visible only to logged in users)
-
That’s the way the theme is designed: the main posts page displays excerpts. Auto excerpts show the beginning of the text, with all HTML stripped out (so no line or paragraph breaks, no bold or italics, no links, no images, etc).
You can create a formatted excerpt, or a different teaser text, in the Excerpt module of the post editor. But if you want full posts on the main page you simply need a different theme. -
Hi,
Thanks for responding.
I don’t want full posts on the main page, so that’s fine.
How do I format the excerpt, though? As in, I have already formatted the whole thing when writing the main post and then added the ‘more’ tag. -
You’re welcome.
The more tag is used on themes that normally display full posts, not on themes that display excerpts.
Are you familiar with HTML and inline CSS?
-
Ah yes, well I migrated from a full post theme, so I used it then.
Only very little knowledge, tbh. I could try, though. -
If you want the actual beginning of each post, just formatted, you can switch the editor to Text and copypaste the code into the Excerpt module. But you must know what you’re doing or things will get messed up. For example, you mustn’t isolate a part that contains an opening HTML tag without its corresponding closing tag. This article of mine might be useful to you:
http://wpbtips.wordpress.com/2012/02/05/introduction-to-html-for-wordpress-com-users/On the other hand, the logic on themes that display excerpts is that these excerpts should look rather uniform. So instead of copypasting or adding code to display the beginning of each post as it should be formatted, you could write plain text in the Excerpt module, just different text: a teaser or a summary of the post.
-
This is brilliant! And simple enough for me to comprehend.
I am mostly using plain text in the Excerpt module, except where I think the formatting is absolutely necessary.
Thank you muchly! :)
- The topic ‘How to retain original post formatting on home page?’ is closed to new replies.