Recently I and many other faced a problem while changing the codes for the post inside the template editor.
The changes were made to post code of the Blogger, which means:-
- The codes inside
<b:includable id='post' var='post'>. Inside it the codes should start with something like;
<article class='post hentry' >, or
<div class='post hentry' >or
<div class='post' >
- The same goes to
<b:includable id='mobile-post' var='post'>, which only comes in to play if you have mobile template enabled.
<b:include data='post' name='post'/>, which is required to be present in side
<b:includable id='main' var='top'>to show your posts.
This problem while,
- Changing the header ( H3 to H1) codes for the post.
- Changing other codes such as, post footer, post labels, time, post author and anything inside the code
<b:includable id='post' var='post'>.
For your information; these were not mistaken or after making mistake the codes were changed to previous from and were properly saved using the template editor.
But there were not impact on the actual blog of the saved work of the template. And when going back to the template editor you see that the changes made to post codes are not there, they are back to their original (Blogger default) form.
If you are facing this problem then do not worry as there is the solution for it.
Solution-1: If you have a backup copy of your template just prior to making these changes, then re-install it you Blog.
Solution-2: If solution-1 failed you have to go technical. Now,
- Go to Blogger dashboard of your blog > Template > backup your current template.
- Open the template editor.
- Search for
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>.
- After that paste the following code,
<b:includable id='post2' var='post'> <!-- your post codes goes here --> </b:includable>
In place of
<!-- your post codes goes here -->paste the edited version of the post code or the previous version of the post code. You can get it from the you backup template which you have saved before making any changes. If you do not have the copy then copy the code from
<b:includable id='post' var='post'>and edit it the way you want.
If you having problems with post in mobile views then use this code,
<b:includable id='mobile-post' var='post'> <!-- your post codes goes here --> </b:includable>
- Now search for
<b:include data='post' name='post'/>and change it to
<b:include data='post' name='post2.'/>. For mobile search for
<b:include data='post' name='mobile-post'/>and change it to
<b:include data='post' name='mobile-post2'/>
- Click “Save” in the template editor.
- A check is the current changes are working properly.
This solution is the best option.
Solution-3: If all failed then, install a new and fresh template.
Solution-4: If installing new template do not works (if the post does not look like as it should according to the template codes) then, apply the solution-2 in the new template and install it on your Blogger blog.
These are all possible solution for your problem. If you need any assistance, feel free to leave a comment.