Blogger : How To Fix Missing Header Image In Mobile Template
The Blogger platform offers you different mobile templates for your site. You can choose between built-in templates (Simple, Picture Windows,…) or you can select a Custom mobile template, which will adapt your desktop template to the mobile version. This enables you to have a site with a consistent theme on both desktop and mobile versions. One part that might not be consistent though is a header. Depending on the options selected in the Layout section, the mobile template (either custom or built-in) might not show a header image. In this post, we will examine two ways to solve this problem.
![]()
Header in desktop version
| ![]()
Header in mobile version
|
The problem of mobile template not showing a header image will only happen when you have a specific option selected in the Header Configuration Window in Layout section. One solution is to change that option, the other solution (that only applies to custom mobile template) is to modify template code. First, let’s try to solve the problem by changing the option in the Layout section.
Note: To test a custom mobile template in a desktop, all you need to do is to append
?m=1
at the end of your URL.Solution 1 – Remove Description Of The Header In Layout Section
Go to Layout section. Under NavBar gadget, there should be Header gadget. For that gadget, click on Edit link.
A new window with the name “Configure Header” will open. This is where you set up your image header. At the bottom of the window you should have 3 options under Placement option:
| ![]() |
If you have option 1 selected, your image will not show in the mobile version of your site. If you don’t need to show a title / description in the header, then the solution is simple. Just select either the second or third option. Both of these options shows a header image in the mobile version of your site.
But what if you still want to keep option 1 or you want to use different image for a mobile version? In this case, the modification of a template code is necessary and this is discussed next.
Solution 2 – Modify Blogger Template Code
To keep an option 1 “Behind title and description” and still have a header image in mobile version, we need to modify the template code. This solution only applies to custom mobile template!!!!
Note:If you have never edited a template before, you might want to check my other postHow to modify Desktop / Mobile Template.
- In Dashboard, choose Template section and then click on “Edit HTML” button.
- Under “Jump to widget” dropdown menu, select Header1.
- The first line should start with <b:widget id='Header1' locked='true'. Expand it by clicking on the arrow located right of the line number.
- Line <b:includable id='main'> should show up. Expand it the same way by clicking on the arrow besides the line number.
- After expanding, a lot of template code will get revealed. In your template, find the line below and Copy it. This code will wrap a few lines, so make sure you only select the code on that line and not any lines that follows it.Note: You should copy the line from your template and not from the code shown below, as the code below could differ from the code you have in your template.1<div expr:style='"background-image: url(\"" + data:sourceUrl + "\"); " + "background-position: " + data:backgroundPositionStyleStr + "; " + data:widthStyleStr + "min-height: " + data:height + "_height: " + data:height + "background-repeat: no-repeat; "' id='header-inner'>
- A few lines above it, you should find the line <div id='header-inner'> . Remove it and Paste the line you copied from step 5. That code shows our image and by Pasting it here, we are making sure that the image will also be shown in a mobile version.
- Click on “Save Template” button.