Infinite scroll function for Twenty Seventeen

Well, I really should’ve done this to begin with, but I took a look at my NGINX logs while the infinite scroll would hang, and it turns out the NAXSI web application firewall module I’m using in NGINX is blocking infinite scroll due to anti-XSS/ant-SQL injection policies. Specifically it’s because of square brackets and usage … Read more

How to add post thumbnail on posts on sites homepage?

The best way is to create a child theme so that when changes are made to 2017 theme and you update your theme with repository, your changes are not lost. How to create a child theme Then go to the theme folder/template-parts/post/content.php Approx edit line 54 to add native function get_the_post_thumbnail(); to div.entry-content below is … Read more

How to add custom header to Twenty seventeen single post in wordpress

Firstly, if you have not already created a child theme of the Twenty seventeen theme, i’d recommend doing that first as any updates to the theme will overwrite your changes. See here regarding child themes. Copy header.php into your child theme and then add your custom header code into that file. There is not separate … Read more