New Landing How can we help? Atelier Excerpt line breaks removed

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #325272
    Kirsten
    Member
    Post count: 192

    Hi,

    When I don’t use the custom excerpt option but just let the theme get the first lines of my post as the excerpt I noticed it strippes line-breakes. Is it possible to get this fixed?

    #325326
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide as link and a screenshot to check the issue?

    -Rui

    #325397
    Kirsten
    Member
    Post count: 192
    This reply has been marked as private.
    #325553
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    The default WP excerpt does not process HTML code, it’s stripped out. The custom excerpt will all you to do this.

    #325626
    Kirsten
    Member
    Post count: 192

    After trying several codes I found on the net nothing seems to override this. Are you really sure that this is generated by WP? I don’t use the custom excerpt. My client just want to have the first lines of the post to appear but with the possibility to see <p> and other tags.

    #325832
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Why not use the custom excerpt we provide for this situation?

    If you do not use the custom excerpt, we run the text through our simple function sf_excerpt() located within /themes/atelier/swift-framework/core/sf-formatting.php.

    You could look to override that function from within a child theme functions.php file.

    Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register