Forums

Paragraph space not recognize in excerpt (3 posts)

  1. just4lolz
    Member
    Posted 2 years ago #

    In my excerpt, the summary of the post seems to be clumped together with no spaces that are indicated in the post.

    Is this a setting in wordpress, or is this in my css.

    If this is in my css, please help me fix this.

    If you are wondering, I am using the theme showcased here
    http://www.wpnow.com/demo/#elements

    See how the summary is clumped together?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Is this a setting in wordpress, or is this in my css.

    The template tag the_excerpt() automatically removes all formatting - including paragraphs. Try replacing it with the_content() in the relevant template files.

  3. just4lolz
    Member
    Posted 2 years ago #

    actually, I think I found the code that would address this problem. I just don't know how to change it.

    the following is an excerpt in my function.php

    /************************************************************\
    * WP NOW - Content Show
    \************************************************************/

    function wpn_content_show($limit)
    {
    if(is_category() || is_archive())
    {
    if (!empty($post->post_excerpt))
    {
    the_excerpt();
    }
    else
    {
    wpn_content_limit(get_the_content(), $limit);
    }
    }
    else
    {
    wpn_content_limit(get_the_content(), $limit);
    }
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.