After fresh WordPress installation, I decided to stick with the Twenty Seventeen WordPress theme. I was very impressed by its design. As, I am running a blog website, and Twenty Seventeen WordPress theme has a small limitation. By default it allows only 3 blog posts to be featured on the front page. So I had to hack a bit to allow to display 10 blog posts.
At the beginning, I started to run grep command on the whole site looking for the “3” characters. I got hundreds, even thousands of results. I needed a way to narrow it down.
A solution was, to change directory to the theme directory and continue looking inside. So, I went to wp-content/themes/twentyseventeen directory.
grep "3" * -r
This time I got fewer results, but still too much to check one by one. I got results from the unrelated files. For example from *.svg and *.css files. I expect to find “3” inside the PHP files. So, I decided to narrow it down even more. My final grep command was:
grep "3" --include='*.php' -r
Now I got just a few results, and one of them was the one, that I expected to get. Take a look:
So, finally, I have just to edit the wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php to change number of pages displayed on the fron page. I changed it to 10 as bellow:
About the author
For the past 15 years I’ve been leading the evolution of startups and enterprises to achieve the highest level of security and compliance. Throughout my career I’ve been a Cyber Security expert and advanced solutions architect with many years of hands on experience both on offensive and defensive side. Knowledgeable at the highest level in application development, networking, data and databases, web applications, large scale Software as a Service solutions, cloud security and blockchain technologies.
I’ve been working with CISO’s of international enterprises, helping them set Information Security strategy, and overseeing the implementation of these recommendations. As part of these projects, I’ve been assisting companies to achieve compliance in GDPR, PCI, HIPAA and SOX.
Among my credits, I was a founder of a database security company GreenSQL/Hexatier which was acquired by Huawei and I’ve co-founded Kesem.io, Secure multi-signature Crypto wallet.
Specialties: Software and cloud architecture, Compliance (GDPR, HIPAA, PCI, SOX), blockchain technologies, software development, secure architectures, project management and low level research.