Hi there!
I added the following code to my functions.php
//add excerpt
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_filter('get_the_excerpt', 'wpse_custom_wp_trim_excerpt');
//read more
//Read More Button For Excerpt
function themeprefix_excerpt_read_more_link( $output ) {
global $post;
return $output . ' <a href="' . get_permalink( $post->ID ) . '" class="meerlezenlink" title="Meer over dit product">Meer over dit product...</a>';
}
add_filter( 'the_excerpt', 'themeprefix_excerpt_read_more_link' );
What this code does is add the product description to my archive pages, and a ‘read more’ like link.
Anyway, this all works fine. PS: If you check this out, you’ll notice that by way of CSS this appears only on hover. May change that though.
Here’s the problem. On all of my Woo archive pages this works. EXCEPT for the very first product on the page. Even though the content is actually there.
Would you have any idea what could be causing this??