This tutorial enables you to replicate the front page 1 widget area on all pages. The code also creates a unique widget area so you can display different content.
On top of this, you can also display a unique background image behind the new widget area which can be added via a new setting added to the customizer.
Here’s the demo video
Note : You can also use the featured image as a background image on all single posts and pages. Code modification for this is included for logged in users.
- Once you download the functions.php file below, copy and paste the PHP code to the end of the Digital Pro themes functions file.
- Add a image named after-header.png to your child themes images folder.
- Go to Appearance > Widgets and add a widget to the new widget area named Front Page Copy
Here’s the code for paid members:
Leave a Reply
You must be logged in to post a comment.