johanm
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Nisarg] Read more link for excerptsFigured something out, it kinda works. In functions.php I changed the function nisarg_new_excerpt_more() to (hardcoded Dutch texts):
function nisarg_new_excerpt_more( $more ) { return '<p class="read-more"><a href="'. esc_url(get_permalink( get_the_ID() )) . '">' . 'lees verder »' . '<span class="screen-reader-text"> '. 'lees verder' .'</span></a></p>'; }And in content-excerpt.php, I added nisarg_new_excerpt_more() after the the_excerpt() function call:
<?php the_excerpt(); echo nisarg_new_excerpt_more(); ?>Not pretty, but I haven’t done much coding lately. But it works, I now have read more links after excerpts. Also changed the CSS, so it is smaller and right aligned.
- This reply was modified 9 years, 5 months ago by johanm.
Forum: Plugins
In reply to: [W3 Total Cache] 502 Bad Gateway after upgrading to WordPress 4I managed to solve it by upgrading my theme, namely Thesis, from version 1.8.5 to 1.8.6.
linkForum: Plugins
In reply to: 502 Problem after upgrading to WP4 and W3 Total CacheKeeping fingers crossed, but problem seems solved by upgrading from Thesis 1.8.5 to 1.8.6 theme.
As to why certain pages displayed correctly and others not …?
Pages display correctly and no longer “Connection reset by peer” errors in log files. Gonna keep an eye on it.Forum: Plugins
In reply to: [W3 Total Cache] 502 Bad Gateway after upgrading to WordPress 4Problem solved after undoing the upgrade to WordPress 4 (restoring backups). Another problem I found after the upgrade and deactivating W3 Total Cache was that some longer articles were cut off.