Share:

Create Blogger Empty Theme - Amit Padhiyar (Saatody)

In this post, I am trying to create Blogger empty theme. So, This can help to make customize theme for Blogger. First, I will create Basic HTML Structure.

HTML Basic Structure

<!DOCTYPE html>
<html>
   <head>
        
   </head>
   <body>
        
    </body>
</html>
This is simple structure. But still, This will give an error when we store it in Blogger theme editor. So what is the minimum requirement for creating empty theme?

Put The XML Prolog At Top Of The Script

It means Blogger theme markup is not in HTML but it is in XML format. It must come first in the document.
<?xml version="1.0" encoding="UTF-8" ?>

Put <b:skin> And <![CDATA[]]> In Head

The <b:skin> is blogger API (Custome tag from Bloggger) that used for define CSS in your theme. While <![CDATA[]]> used for write data in between these strings includes data that could be interpreted as XML markup, but should not be.
<b:skin><![CDATA[

]]></b:skin>

Put <b:section> in body

Use at least one <b:section> in your theme. With <b:section> element, It must have one unique id require as a attribute.
<b:section id='unique_id'>
  
</b:section>

Blank Theme Of Blogger

Overall, I have demo of blank theme is in the below code which will not give any error in Blogger theme editor.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html>
    <head>
        <b:skin><![CDATA[
  
      ]]></b:skin>
    </head>
    <body>
        <b:section id='unique_id'>
        
        </b:section>
    </body>
</html>

Comments

Popular posts from this blog

Get Color From Pixel C# WPF | Saatody | Amit Padhiyar

Basic Audio Operations With MP3 And Wave Files Using NAudio C#

Create Drag And Drop Operation Between DevExpress GridControl And Custom WPF UI | Saatody | Amit Padhiyar