Go to Theme → Edit HTML under the CUSTOMISE button (at draft.blogger.com). Use Ctrl + F keyboard shortcut to find the CSS code for body.mobile as follows.
Next, open your website or blogger blog on Google Chrome Browser and follow the following steps.
- Right-click on the page → Inspect (means open the DevTools)
- Then use the Toggle device toolbar to select the mobile view
- Then hit the refresh button of the browser to load the actual mobile view of your site.
- Ensure the URL of your site is now changed to something like www.<your-site>.com/?m=1 where it ends with /?m=1
Next, select an element to inspect it using the arrow button just the left side of the Toggle device button as said above. And play around to find the desired target element to customize it using custom CSS as explained above.
Here, you can play with the following to find the desired element name and required style to apply.
- The navigation bar of the elements to navigate to the target element's child or parent nodes. Sometimes the leaf or child level elements can't be used for your desired customization. There may be the parent element that will work. You have to do trial and error to get the right element that works.
- Use the style tab to explore and try the styles you need on the selected element.
- Especially try element. style option to find out or try out the custom CSS code you need.
- And finally, you can copy the element name from the Properties tab to use the same in your Edit HTML work as said above.
Here is some sample customization that has been done in this way -
.mobile .footer-outer {
border-top: none;
padding: 5px;
}
.mobile .blogger-iframe-colorize, .mobile .blogger-comment-from-post {
width: 95vw;
margin-left: -5px;
}
.mobile input.gsc-input {
width: 60vw;
}
Post a Comment