Remove recent work and gallery button from homepage

If you find this tweak helpful:


Tweaking Elegant Themes involves creating a child theme and editing PHP and CSS files within a text editor. If you have never done this you may want to read our guide on creating a child theme. All tweaks are written with the assumption that you have a default installation of your theme.  Any tweaks or changes you may have previously made to your theme could affect the outcome of the tweaks on this site. All tweaks should be tested before applying to a live site. 

This tweak will remove the text 'Recent Work', the posts below that text, and the 'Enter The Gallery' button below and to the right of those posts. All of this is done with a few lines of CSS.


Locate your style.css file in /deepfocus-child/

Add the following code:

a.entergallery {
display: none;

h3.recentworks {
display: none;

#portfolio-items {
display: none;

That's it. You can delete any parts of this code if you don't want everything removed from the homepage.

Post a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This