New Landing How can we help? Themeforest Theme Support Uplift issue Archive Content Output (SF 2.5.16 & Uplift 1.3.12)

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Uplift
  • #296678
    Xavi
    Member
    Post count: 11

    Hello,
    After uddate to SF 2.5.16 & Uplift 1.3.12 the option ‘Archive Content Output'(content or excerpt) in Theme Options >> ‘Archive/Category Options’ doesn’t work.
    Only works the post meta “Custom excerpt”. Tested in a fresh copy of WordPress with Uplift 1.3.12 and SF 2.5.16.

    Thanks a lot for your help.

    #297011
    David Martin – Support
    Moderator
    Post count: 20834

    The full content is displayed for me if I choose content over excerpt.

    Can you screenshot your Theme Options => Archive/Category Options so I can see your settings?

    – David.

    #297411
    Xavi
    Member
    Post count: 11

    Hello David,
    I need display the wp excerpt, not content over excerpt.
    Theme Options => Archive/Category => Archive Content Output => Excerpt
    Edit Post => Excerpt

    In the attached images you can see how the blog-feed shows the excerpt correctly, in archive/category pages not (in all blog types).
    I can fix this by myself, but I think that I should report this issue.
    Before update this didn’t happen. Thanks

    Attachments:
    You must be logged in to view attached files.
    #298002
    David Martin – Support
    Moderator
    Post count: 20834

    Is there a reason you do not want to use Meta Options => Page Meta => Custom excerpt?

    Is page builder active within those pages you see correctly in the feed?

    We set the excerpt length here /uplift/swift-framework/core/sf-formatting.php, the function is:

        /* EXCERPT
        ================================================== */
        if ( ! function_exists( 'sf_new_excerpt_length' ) ) {
            function sf_new_excerpt_length( $length ) {
                return 60;
            }
    
            add_filter( 'excerpt_length', 'sf_new_excerpt_length' );
        }

    You can test overriding this within your child theme functions.php.

    Lastly, do you have a staging site as it’s tricky to help with local installs?

    Thanks,
    David

    #298116
    Xavi
    Member
    Post count: 11

    Hello David,
    Thanks for your time and support

    We hide the “Meta Options” by user roles (Author) on our blog. This user role no need these Meta Options, for us.
    Don’t worry about the child theme, we test everything in a local installation.
    The excerpt_length is not the solution for us.

    Thanks

    #298366
    David Martin – Support
    Moderator
    Post count: 20834

    No problem, Uplift uses a custom excerpt function, not the standard wp excerpt.

    If you open the file /uplift/swift-framework/core/sf-formatting.php

    Locate this:

    //$excerpt = wp_trim_words( get_the_excerpt(), $limit );
    $excerpt = sf_content( $limit );

    Replace with this:

    $excerpt = wp_trim_words( get_the_excerpt(), $limit );
    //$excerpt = sf_content( $limit );

    Does that work better for your requirements?

    #302437
    Xavi
    Member
    Post count: 11

    Hi, David.
    My apologies for the delayed reply.
    Thanks again for your help. We solved this issue otherwise, we don’t want to override these lines in the parent theme.
    All the best

    #302439
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Ok. Glad it’s sorted.
    Thanks David.

    -Rui

Viewing 8 posts - 1 through 8 (of 8 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