Tagged: pagination, Portfolio
I use the Enfold templates on 5 of my sites.
On one of them I have added the following code to the child-theme functions.php to make sure the focus doesn’t change on pagination:
add_action( ‘wp_footer’, ‘enfold_customization_pagination_anchor’ );
function enfold_customization_pagination_anchor() {
?>
<script type = “text/javascript”>
jQuery(document).ready(function(){
jQuery(‘.pagination a’).each(function(i, e){
var url = jQuery(this).attr(‘href’);
jQuery(this).attr(‘href’, url + “#portfolio”);
});
});
</script>
<?php
}
This really worked like a charm, but now I just figured out the pagination is not working anymore.
I turned of JS minifying, delete server- and browsercaches, but it’s not helping.
Did something change in the latest version of the theme that could trigger this?
Hi envis!
Please update WordPress to the version 4.4.2 and Enfold to the latest version 3.4.7 – kriesi.at/documentation/enfold/updating-your-theme-files/. You are currently using older versions of both :)
Best regards,
Yigit
Yigit,
You are right, I have updated WordPress, but the automatic update through Envato doesn’t work.
I get the screen:
Theme Updates
No Updates available. You are running the latest version! (3.3.2)
Check Manually
So I will update manually and let you know.
I have updated the template manually.
Any clue why it doesnt’t find the update automatically?
The credentials I have doublechecked and they are valid.
The portfolio is working again, thanx :)
Hi,
It might be due to WordPress transients, you could try this plugin to see if it helps on the next update: https://wordpress.org/plugins/artiss-transient-cleaner/
Regards,
Rikard
Rikard,
I am using WP Optimize https://wordpress.org/plugins/wp-optimize/.
It can also delete transient options from the database.
Manually updating dit the trick.
Thanx! :)