• Hi.

    My problem is this:

    When I edit the text of a blog entry or of a page, I can see everything ok. Bold text, lists, paragraphs, everything looks ok. When I publish the entry and visit the page, the format is lost. I can see the text and things like bold, italic, etc, but everything like paraghaps, lists, etc is not show. I come back to the editor and everything is ok.

    What’s happening?

Viewing 7 replies - 1 through 7 (of 7 total)
  • It’s probably your theme. Try reverting the theme to Twenty Fourteen and see if the formatting there.

    If it is: your theme author didn’t set-up lists and paragraphs properly. Try searching your themes name on google with the problem too see others solutions or a ruling that it’s just not well written,

    If it isn’t: a plugin is causing a conflict, it’s manipulating your post_content in someway on the front end, try deactivating the plugins one-by-one until you see what plugin is causing the issue. and after that, again search the plugin with the problem to see if others have the same issue

    Thread Starter Entrarenelarmario

    (@entrarenelarmario)

    Thanks!!!

    Yes, the problem is the theme. I revert to Twenty Fourteen and everything works propertly. I search in google us you recomend and I don’t found any option.

    Can you help me?

    Thanks a lot!!

    Well it would be the code of your current theme. Can you contact the theme author? open a support request, etc?

    Thread Starter Entrarenelarmario

    (@entrarenelarmario)

    I think is not possible. In the place I download the theme, the author explains that he will not give support for this theme anymore.

    Did you have any idea about what can I do?

    The theme is Grungexperience.

    Thanks a lot and forgive me for the inconvenience.

    Thread Starter Entrarenelarmario

    (@entrarenelarmario)

    Searching in the web I found this information non related to my theme but I think could be the solution.

    When the text format is not showing correctly, the problem is that the theme has this order:

    <?php echo nl2br(get_the_content());?>

    And must be this one:

    <?php the_content('Lea mas &raquo;'); ?>

    Could you explain me in witch file must be this wrong chain?

    yes, that would do it!

    nl2br() makes line breaks (when you hit “enter/return”) <br /> a html line break, instead of <p> which are paragraphs (the formatting you’re looking for.

    in the wp-admin > appearance > editor or via ftp in /wp-content/themes/(themename)/

    you should be able to edit your theme. look for page.php, single.php, and index.php and do a “Find”, look for

    echo nl2br(get_the_content())

    and replace all instances with

    the_content()

    Thread Starter Entrarenelarmario

    (@entrarenelarmario)

    No way.

    I search in the 3 files you say and in page.php and single.php I found it correctly “the_content ()” and in the index.php there is no one of the two options.

    Well. I assume the theme don’t work and that all.

    Thanks for your interest.

    ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Don't show text formating in the front-end.’ is closed to new replies.