Just as we sign off every letter in a particular style, we may want to end every Post with a standard text, signature, logo, graphic or link. There are 2 ways to have this pre-formatted text automatically appear in the template or post template, so that you need not have to retype them every time you post.
Modifying the Template
The first method is to modify the template. Readers who have followed our guides to insert Social Bookmarking Links, AdSense Codes, Digg buttons, etc., will be familiar with template modification. Still, we would recommend this only to the users who are proficient in CSS and codes.
When you are logged in, go to Template -> Edit HTML and check the box next to “Expand Widget Templates”. Scroll to where you see this:-
<div class='post-body entry-content'>
<p><data:post.body/></p> <div style='clear: both;'/> <!-- clear for photos floats --> </div> TEXT |
---|
If you want the standard text to appear right after the Post Title but before the Blog Post, insert the TEXT above this code. If you'd like the text to appear immediately after the Blog Post but before the “Posted by” line in the Footer, insert the TEXT below this code.
Because the placement is in the template, to align the text, add the alignment codes like these, before and after the TEXT:-
<div align='left'>TEXT</div>
|
---|
You can also have images, text links, etc. instead of plain text. These codes are discussed in Hyperlinks and Image Links.
Using Post Template
This method is what we think every Blogger can easily use to insert standard text, boilerplate clauses or pictures into every post. It is Blogger's way of saving you the time of retyping these into every post. You can therefore configure the text that you want, and insert that once into the Post Template. This text will always appear in the Post Editor when you create a new Post in the same manner as a signature is appended to each of your Yahoo or Google mail. In short, your Post Editor is now pre-formatted to include this text.
First, create a draft post. Use the “Compose” mode and type in the text, add the links, change the font style and color, etc. When you are happy with the text, switch to “Edit HTML” mode. Copy the entire piece of writing together with all the style codes.

Next, go to Settings -> Formatting and at the bottom of the page, you will see a “Post Template” box. Paste the code into the box and click “Save Settings”.

The draft post we created may be deleted. The next time we write a new post, this pre-formatted text will appear in the Post Editor. We can delete or edit this text or leave it at the foot of our Post.
@ Copyright 2012 Pradeep Lodhi (ethical hacker)
No comments:
Post a Comment