While editing and designing blogspot templates, you must have encountered many difficulties because of very small errors that you could not find. Errors such as not being able to save the code, or after saving the code, it is encrypted, highlighted in red, highlighted in orange...
Here I will guide you through a few tips that I know in designing blogger theme.
1 Ctrl+z, ctrl+y
Similar to Word text editing, the Ctrl+Z button - Undo. That means going back to a previous operation, you really need this key combination because if you have just finished editing but made a mistake, or want to go back to the previous operation, press Ctrl+Z.
And the remaining key combination is Ctrl+Y - Redo. That means going to the previous operation. If you just pressed Ctrl+Z and want to go to the last operation, press Ctrl+Y again.
And Ctrl+C (copy), Ctrl+V (paste), Ctrl+X (cut) then everyone must know, right?
2 The entity name must immediately follow the '&' in the entity reference
If after pressing save, the error message The entity name must immediately follow the '&' in the entity reference appears and it is directed to the text/html paragraph, then add amp; after &. Then the code will become &
If after clicking save, the error message The entity name must immediately follow the '&' in the entity reference appears and it is directed to the javascript code, then add the tag pair \\<![CDATA[ and \\]]>. Then we will have
<script type='text/javascript'>//<![CDATA[
Javascript placed in this
//]]></script>
3 Error of not being able to save due to javascript
As mentioned in section 2, we just need to add the tag pair \\<![CDATA[ and \\]]> to save immediately.
4 Error of lag, page freeze, page freeze
This error may be due to your code being too confusing, or being compressed too much.
To fix this, we close this page, then access it again to edit html. Quickly ctrl+A and copy and paste into notepad+. Next, we will find the overly compressed code (usually javascript and css), use the tool to expand it. Edit it in notepad+. Then copy and paste it back into blogger as usual.
5 The element type must be terminated by the matching end-tag
In blogger, tags must have a closing tag. So even input, br, img tags... must always have a closing tag.
We can edit it to <br/>, <input type='' class=''/>, <img src=''/>
6 Should use page breaks when writing articles
I recommend you use page breaks, to break the necessary paragraphs only extracted to the index page.
If on the editing page, you can add breaks on the toolbar.
If on the html page, you use <a name="more"></a>.
7 All head meta tag
If you are not good at adding meta tags seo as you like, you can see my meta tage or just one line <b:include data='blog' name='all-head-content'/> placed below the opening tag <head> is enough.
8 Remove unused code but still save it
If you want that code not to run/appear on your website but you still want to keep it for later use, you can do it in the following way:
- Add <!-- at the beginning and --> at the end for HTML
- Add /* at the beginning and */ at the end for CSS and javascript between lines
9 Continuing to be updated

Post a Comment