Add 'read more' button archive pages (pro/icon)

I am using pro/icon and I want to add ‘read more’ button at the end of the excerpts on the archive pages.

Archive pages from the theme have no read more (link/button)
https://kunsteiland.nl/kunstenaars-category/2019/
Archive pages from WPbakery masonry do have the read more (link/button)
https://kunsteiland.nl/archief/

Is there a way that I can import the excisting archive page into the layoutbuilder?

Hello @Westervoort,

Thanks for writing to us.

Regretfully there is no option to add a custom Read More button or import the layout which is built in the WPbakery. It would require custom development. I would suggest you please contact a developer who can assist you with your concerns or you can subscribe to One where customization questions are answered. Please note we don’t provide custom development support. It is out of the support scope.

Thanks for underatnding

Hi Prakash,

Thanks for your reply. I dont want to integrate WPB into the design. I only want a readmore link or button in the archivepages of theme Pro. I think that should be possible isn’t it? Thx Mark

Hi @Westervoort,

I have seen that you have used a code that was referred to in another thread but it didn’t work for you as that code does not have the Read More button for the Icon stack you are using. You need to modify it for the ICON stack, and your code will look like the following one.

function x_excerpt_string( $more ) 
{
    $stack = x_get_stack();
    if ( $stack == 'integrity' ) 
    {
        return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a></div>';
    } 
    else if ( $stack == 'renew' ) 
    {
        return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>';
    } 
    else if ( $stack == 'icon' ) 
    {
        return ' ...<a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>';
    } 
    else if ( $stack == 'ethos' ) 
    {
        return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>';
    }
}
add_filter( 'excerpt_more', 'x_excerpt_string' );

Please remember that the above code will work if copied as it is and doesn’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes which means we can’t fix it in case it conflicts with something on your site nor will we enhance it. Further customization should be directed to a third-party developer or you can avail One, where we answer the questions beyond normal theme support.

Thanks

Thanks Tristup, this works for me. Very helpfull.

Hello @Westervoort,

Glad that we were able to help you. Please feel free to open a new thread if you have any more concerns.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.