Blogger : How To Fix Missing Header Image In Mobile Template

blogger-header-image-problem-thumb
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.
Blogger - Header Image in Desktop Version
Header in desktop version
Blogger - No Header Image in Mobile 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:
  1. Behind title and description
  2. Instead of title and description
  3. Have a description placed after the image
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.
  1. In Dashboard, choose Template section and then click on “Edit HTML” button.Blogger - Edit HTML Button
  2. Under “Jump to widget” dropdown menu, select Header1.
    Blogger - Jump to widget Header1
  3. 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.
    Blogger - Edit HTML Expand Code Line
  4. Line <b:includable id='main'> should show up. Expand it the same way by clicking on the arrow besides the line number.
    Blogger - Expand Code Line for id main
  5. 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.
  6. 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.
  7. Click on “Save Template” button.

Popular posts from this blog

How to hide or remove Powered by Blogger

Merge Partitions without Losing Data in Windows 10/8/7 - MiniTool

Media buffering, seeking, and time ranges