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