• After upgrading to 4.7.1 my theme broke. All html formatting in the entry-content was gone. The linebreaks had gone and the text was now displayed as textarea instead of P. This meant the text size was now 1rem, and this is not readable for anyone.

    I managed to fix this, by adding the following line to the setup section in functions.php:
    remove_filter( ‘the_excerpt’, ‘wpautop’ );

    A better solution would be welcome. ??

    For completeness, the diff:
    — wp-content/themes/nomad/functions.php 2017-01-18 11:00:08.000000000 +0100
    +++ ../themes/nomad/nomad.2.0.7/functions.php 2017-01-02 14:34:30.000000000 +0100
    @@ -85,7 +85,6 @@
    ‘default-color’ => ‘ffffff’,
    ‘default-image’ => ”,
    ) ) );
    – remove_filter( ‘the_excerpt’, ‘wpautop’ );
    }
    endif;
    add_action( ‘after_setup_theme’, ‘nomad_setup’ );

Viewing 1 replies (of 1 total)
  • Theme Author protravelblogs

    (@protravelblogs)

    Hello banpei,

    hmmnn, we tried to update our wp to the current version but looks like nothing was change, maybe you got some plugin that overrides the default theme font-size?.

    thanks

Viewing 1 replies (of 1 total)
  • The topic ‘HTML formatting broken after upgrade to WP 4.7.1’ is closed to new replies.