In this tutorial, i’ll show you 3 ways to conditionally display different banner images after the header of the Beautiful Pro theme by StudioPress.
Here’s the question on the StudioPress Community forum i have resolved with this solution.
Seeking help with hook with conditional statement
Goal: Add a different image that displays beneath the header on specified pages.
If you only want to display a handful of different images, then this method is one of the best.
Lets look at 3 different options you can use or modify to suit your own preferences.
Display Default Image On Front Page & 2nd Image On All Other Pages
This method includes code which uses the default after header background image on the front page and a second image on all other pages.
Leave a Reply
You must be logged in to post a comment.