Lost formatting after saving

After a lot of research (2 day) i finally found a plaster… it’s not a fix, but it make the editor work for most of the work. Here is the code to add to function.php of the theme: function cbnet_tinymce_config( $init ) { $init[‘remove_linebreaks’] = false; $init[‘convert_newlines_to_brs’] = true; $init[‘remove_redundant_brs’] = false; return $init; } … Read more

Why does WP not like my container?

I think it’s safe to say that wpautop() is a basket case without hurting anyone’s feelings, but I wouldn’t remove & add it at a different priority as that just makes things worse, as demonstrated (although what you posted is the browser trying to make sense of broken html, rather than the actual output, which … Read more

Why is WordPress WYSIWYMG and how do I make it WYSIWYG?

After you post your content, WordPress will pass the_content() function through a number of filtering function’s. There are four of them, wptexturize(), convert_smilies(), convert_chars(), and wpautop(). All of these are defined in wp-includes/formatting.php and are referenced in wp-includes/default-filters.php. To remove these filtering functions you can disable them by putting this in your functions.php theme file: … Read more

Automatically added brs and paragraphs?

You can postpone the wp_autop filter. WordPress has this filter enabled by default. And it is processing before the shortcode output. remove_filter( ‘the_content’, ‘wpautop’ ); add_filter( ‘the_content’, ‘wpautop’ , 12); Add this to your functions.php and check if the problem persist! See a similar problem here: stray <p> elements

Preserve white-space in Page

You are not wrapping the code inside <code> tags. <pre> <code> selector { property: value; property: value; } </code> </pre> Furthermore, most syntax highlighting plugins also use this format (both <pre> and <code>) to render code. Here you have more about this. https://css-tricks.com/snippets/css/make-pre-text-wrap/

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)