New Landing How can we help? Cardinal Excerpt in Archive

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Cardinal
  • #211397
    robinhaus
    Member
    Post count: 32

    Hello

    I would like to know how to change the excerpt of the archive pages in Cardinal. I have tried some ways from other themes of Swiftideas like the following code:
    <div class=”blog-wrap blog-items-wrap blog-<?php echo esc_attr($blog_type,$excerpt_length = “250”); ?>”>
    but it breaks the page.
    Example page: http://micliente.net/blog/franciscoruiztorre/

    I want also to translate “View profile” in the overlay of the team items. In the file .po is well translated. I guess some php must be changed manually like in the post-details.php
    Example page: http://micliente.net/blogs

    Can you help me please? Thank you

    #211756
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    1) Could you be more specific about what you want to change? Are you looking to change the length?

    2) Please use this plugin to find and translate that string: https://wordpress.org/plugins/real-time-find-and-replace/.

    Thanks,
    David.

    #211790
    robinhaus
    Member
    Post count: 32

    Hello David,

    Yes that is, I want to change the length.

    Thank you!

    #212096
    David Martin – Support
    Moderator
    Post count: 20834

    No problem.

    1) Please activate your child theme.
    2) Within the child theme create a directory folder called swift-framework and within that create a directory folder called layout.
    3) Within the folder layout create a file called archive.php.
    4) Copy all of this code into archive.php: http://pastie.org/private/d9kbqaxoefw8g0gzag9dxq
    5) Locate this line: <?php echo sf_get_post_item( $post->ID, $blog_type, "yes", "yes", "yes", "20", $content_output, $show_read_more ); ?>
    6) Change this "20" with the number you wish for your excerpt, ex: "50".

    Thanks,
    David.

    #212136
    robinhaus
    Member
    Post count: 32

    Hello David,

    Thank you for your message, that is exactly what i need. I have been testing that file and row before.

    I have done it. But unfortunatelly, it still doesn´t work. Can you check it please?

    Thank you in advance

    #212147
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    That should work, I will need your WP login details.

    What length are you looking to change your excerpt to, can you be specific as possible?

    – David.

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 one of the following items
Login and Registration Log in · Register