contacts

Get All 146 Premium WordPress Themes for Just $59.99
One-Time Payment: Unlimited Use Across Unlimited Domains, Plus Free Lifetime Updates! Learn more

TishWine: Set a Custom Page Header Background Image on a Specific Page

TishWine: Set a Custom Page Header Background Image on a Specific Page

By Default the Page Header Background Image (set in Admin Panel -> Left Menu -> Appearance -> Customize -> ‘Header and Footer’ Section -> ‘Page Header Background Image’) is same for all page. In case you want to set a specific image as a page header background image for some page, it will require a small customization:

Open the page you want to set a specific page header background image for edit

2. Insert ‘Custom HTML’ block:

3. Insert the following code:

<script type="text/javascript">
jQuery( document ).ready(function() {

jQuery('.page-title-area').css('background-image', 'url(https://tishonator.com/themepreview6/tishconstruct/wp-content/uploads/sites/37/2021/02/sunset-219354_1280.jpg)');

});
</script>

Replace:

https://tishonator.com/themepreview6/tishconstruct/wp-content/uploads/sites/37/2021/02/sunset-219354_1280.jpg

with URL of the image you want to set as a Page Header background image

4. Save changes