I recently answered a support question from someone who wanted to remove her footer widgets from two pages on her site, using the Pretty Darn Cute Design “Fun” theme.
My recommendation for someone who doesn’t feel comfortable with updating code, is to use the Widget Logic plugin.
If that doesn’t meet your needs, you can add a code snippet to your functions.php file.
To target a specific page or post, you need to identify the page or post ID.
To locate the page ID, open up your desired page, and select “edit”. Your page ID is seen as part of the URL:
Then add the page ID to this code snippet (replacing the page ID of 79 seen below). When done, add the code snippet to the bottom of your functions.php file.
Props to Brad Dalton for the guidance.
As always, when making any updates to your functions.php file, have a backup file available, so that you can easily replace your file should your site crash. To remove the Footer Widgets from multiple pages, you can either use the page ID, or page name in this format:
Leave a Reply