Shape 5

Wordpress Club Themes => Corpway - Club => : artlee August 27, 2015, 02:05:25 PM



: Formatting Text
: artlee August 27, 2015, 02:05:25 PM
I don't know if this question pertains to my theme, corpway, or WP. I'm still learning WP. So... I am surprised when I type text in a new page that the text can be marked as a headline (like H4) but not as a paragraph (p). And, I seem to have no control over spacing between headlines and paragraphs. When I try to add a blank paragraph with a non-breaking space, it disappears on saving. Ultimately, the text is unreadable as displayed on the front end. The fonts are fine, just the spacing stinks. Is this how corpway operates? Or, how WP operates. Not quite the average text editor, I think. I'm attaching a screenshot...


: Re: Formatting Text
: Tristan Rineer August 27, 2015, 02:13:18 PM
WP does some automatic formatting to page/post content on save.  That auto-formatting has broken demo content in the past, so I added a way to enable/disable it on the Advanced tab of the theme options.  Try changing the "RAW HTML" option away from whatever your current setting is, and see if that helps.


: Re: Formatting Text
: artlee August 27, 2015, 02:42:22 PM
Okay, I turned off Raw HTML. Looks a little better. Should I have Demo mode enabled? I can't see that does anything one way or the other. How the heck does one throw a blank line between paragraphs? It appears WP's output has no formatting for paragraphs since they're not marked as paragraphs in the published code.


: Re: Formatting Text
: Tristan Rineer August 28, 2015, 09:37:39 AM
Demo mode allows you to use URL arguments (like "?lang=rtl" and "?lang=ltr") to test different settings without actually changing them in the theme options.  With it enabled, a URL argument with a name matching one of the settings will set a session override for that setting.  The function was primarily created as a way for me to showcase the flexibility of the framework in a single demo just by having custom URLs that change settings browser-side, without actually changing them on the site.

Which editor mode are you using?  If you are using the "text" mode instead of the "visual" mode, WP assumes that you are intending to do your own HTML formatting.  If you use "visual" mode, it will automatically add paragraph tags around every block of text that is separated by a new line.


: Re: Formatting Text
: artlee August 28, 2015, 11:30:34 AM
Brilliant! Guess what? I've been editing in Visual, then looking in Text and saving while in that mode. From now on, I will save in Visual. HTML output looks as I would expect.

This answers my question. Solved...


: Re: Formatting Text
: Tristan Rineer August 28, 2015, 12:14:53 PM
Good to hear!

Locking the thread as solved/answered.