{"id":1654,"date":"2020-02-10T12:00:30","date_gmt":"2020-02-10T11:00:30","guid":{"rendered":"https:\/\/www.languedoc121tech.fr\/?p=1654"},"modified":"2020-02-10T12:00:30","modified_gmt":"2020-02-10T11:00:30","slug":"fixing-a-page-title-background-image-that-wont-update","status":"publish","type":"post","link":"https:\/\/dev.languedoc121tech.fr\/?p=1654","title":{"rendered":"Fixing a Page Title Background Image that Won&#8217;t Update"},"content":{"rendered":"\n<p>I recently launched a website for a client. During pre-launch some quirky and irregular behaviour that I&#8217;d hoped was just a consequence of my development environment failed to resolved. The problem? I had set different background images on each page, but they weren&#8217;t updating. So the Weddings page showed up correctly but then I&#8217;d click through to the Events page and that would show the image from the Weddings page. I&#8217;d Shift+F5 to refresh and it would show the right image &#8211; sometimes. Then I&#8217;d click through to the next page and, well, you can guess the rest. Not a good look on a new client&#8217;s site! <\/p>\n\n\n\n<p>If this is happening to, here&#8217;s how to first set a unique image on a page-by-page basis, then how to fix (or avoid) the issue.<\/p>\n\n\n\n<h2>Setting a Page Title Background in Ocean WP<\/h2>\n\n\n\n<p>For this you need to be using the Ocean WP template with the Ocean Extra extensions. This gives you the ability to apply many of the settings from the main template on a page-by-page basis.<\/p>\n\n\n\n<p>First, open the page to edit. The scroll down to the very bottom of the page and you should see a panel that looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image screenshot\"><a href=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page.png\"><img loading=\"lazy\" width=\"1073\" height=\"670\" src=\"https:\/\/i0.wp.com\/www.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page.png?fit=825%2C515&amp;ssl=1\" alt=\"\" class=\"wp-image-1655\" srcset=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page.png 1073w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-300x187.png 300w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-1024x639.png 1024w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-768x480.png 768w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-500x312.png 500w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-800x500.png 800w\" sizes=\"(max-width: 1073px) 100vw, 1073px\" \/><\/a><\/figure>\n\n\n\n<p>You are trying to add a background image to the page title area, so scroll down and then click on <strong>Title<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image screenshot\"><img loading=\"lazy\" width=\"1046\" height=\"682\" src=\"https:\/\/i2.wp.com\/www.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title.png?fit=825%2C538&amp;ssl=1\" alt=\"\" class=\"wp-image-1656\" srcset=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title.png 1046w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-300x196.png 300w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-1024x668.png 1024w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-768x501.png 768w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-500x326.png 500w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-800x522.png 800w\" sizes=\"(max-width: 1046px) 100vw, 1046px\" \/><\/figure>\n\n\n\n<p>Here you can override any template defaults (set via the Customizer) and change the settings. What we&#8217;re doing is changing the <strong>Title Style<\/strong>, so scroll down then select <strong>Background Image<\/strong> from the list.<\/p>\n\n\n\n<p>This opens up a new area with various options.<\/p>\n\n\n\n<figure class=\"wp-block-image screenshot\"><img loading=\"lazy\" width=\"885\" height=\"869\" src=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-background-options.png\" alt=\"\" class=\"wp-image-1657\" srcset=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-background-options.png 885w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-background-options-300x295.png 300w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-background-options-768x754.png 768w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-background-options-500x491.png 500w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-config-panel-page-title-background-options-800x786.png 800w\" sizes=\"(max-width: 885px) 100vw, 885px\" \/><\/figure>\n\n\n\n<p>There&#8217;s a lot you can do here but for now let&#8217;s just add an image, so click on <strong>Add Image<\/strong> and either upload a new image or pick one from the media library.<\/p>\n\n\n\n<p>With that done, <strong>Update <\/strong>(or <strong>Publish<\/strong>) the page to save the changes and your page title should now be displayed.<\/p>\n\n\n\n<p>The top of my page now looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image screenshot\"><a href=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1.png\"><img loading=\"lazy\" width=\"1794\" height=\"811\" src=\"https:\/\/i2.wp.com\/www.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1.png?fit=825%2C373&amp;ssl=1\" alt=\"Chateau Terre Blanche page header with logo, menu, and background image.\" class=\"wp-image-1658\" srcset=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1.png 1794w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1-300x136.png 300w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1-1024x463.png 1024w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1-768x347.png 768w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1-500x226.png 500w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1-800x362.png 800w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1-1280x579.png 1280w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwppagetitlebackground1-1536x694.png 1536w\" sizes=\"(max-width: 1794px) 100vw, 1794px\" \/><\/a><\/figure>\n\n\n\n<p>Great!<\/p>\n\n\n\n<p>Except, this can be when the trouble starts. Do this on more than one page and you might notice a problem when you switch between pages. If this is happening to you, here&#8217;s how to fix it.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright is-resized\"><a href=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/wordpress-customizer-generalstyling.png\"><img loading=\"lazy\" src=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/wordpress-customizer-generalstyling.png\" alt=\"\" class=\"wp-image-1660\" width=\"172\" height=\"291\" srcset=\"https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/wordpress-customizer-generalstyling.png 443w, https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/wordpress-customizer-generalstyling-177x300.png 177w\" sizes=\"(max-width: 172px) 100vw, 172px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>First, open the <strong>Customizer<\/strong>. Then scroll down to General Styling. <\/p>\n\n\n\n<p>Click the <strong>WP Head<\/strong> option, then <strong>Publish <\/strong>the changes. That&#8217;s it.<\/p>\n\n\n\n<p>Now check your site again.<\/p>\n\n\n\n<p>The issue with the background images should be resolved.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>I recently launched a website for a client. During pre-launch some quirky and irregular behaviour that I&#8217;d hoped was just a consequence of my development environment failed to resolved. The problem? I had set different background images on each page, but they weren&#8217;t updating. So the Weddings page showed up correctly but then I&#8217;d click&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1663,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"kt_blocks_editor_width":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_vp_format_video_url":"","_vp_image_focal_point":[]},"categories":[28],"tags":[98,99],"uagb_featured_image_src":{"full":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"thumbnail":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1-150x150.jpg",150,150,true],"medium":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1-300x169.jpg",300,169,true],"medium_large":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"large":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"vp_sm":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1-500x281.jpg",500,281,true],"vp_md":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"vp_lg":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"vp_xl":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"vp_sm_popup":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1-500x281.jpg",500,281,true],"vp_md_popup":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"vp_xl_popup":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"1536x1536":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"2048x2048":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",560,315,false],"page-title-image":["https:\/\/dev.languedoc121tech.fr\/wp-content\/uploads\/2020\/02\/oceanwp-template-issues-banner1.jpg",533,300,false]},"uagb_author_info":{"display_name":"Admin","author_link":"https:\/\/dev.languedoc121tech.fr\/?author=2"},"uagb_comment_info":0,"uagb_excerpt":"I recently launched a website for a client. During pre-launch some quirky and irregular behaviour that I&#8217;d hoped was just a consequence of my development environment failed to resolved. The problem? I had set different background images on each page, but they weren&#8217;t updating. So the Weddings page showed up correctly but then I&#8217;d click...","_links":{"self":[{"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=\/wp\/v2\/posts\/1654"}],"collection":[{"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1654"}],"version-history":[{"count":0,"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=\/wp\/v2\/posts\/1654\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=\/wp\/v2\/media\/1663"}],"wp:attachment":[{"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.languedoc121tech.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}