A compilation of the best hacks
to Google Blogspot / Blogger's standard templates.
Important Note
Although you will find easier guides on the web, you don't need to read this page at all.
Why? Because what this page offers is a completely
BLANK TEMPLATE
with most of these hacks applied*, downloadable by clicking the link.
These hacks have been applied to a standard Google template.
In theory this means you can host your own customised code..
..and yet retain the full functionality of Google's editing tools..
Voila! Full custom free CMS..
From time to time Google will change the rules..
..so these hacks are guaranteed not to remain working.
I will, however, endeavour to keep it updated.
Remove NavBar
{ display: none !important; }
Remove Top Margin
<Variable name="main.padding.top" description="Main Padding Top" type="length" default="0px" value="0px"/>and/or
.post-outer { padding: 15px 20px;
margin: 0 0 25px;
Remove Image Border
Remove Link Underlines
a:link {
text-decoration:underline;
}
a:visited {
text-decoration:underline;
}
a:hover {
text-decoration:underline;
}
To
a:link {
text-decoration:none;
}
a:visited {
text-decoration:none;
}
a:hover {
text-decoration:none;
}
#navbar { height: 0px; visibility: hidden; display: none;}
.post-body img, .post-body .tr-caption-container, .Profile img,
.Image img, .BlogList .item-thumbnail img {
border: 0px;
-moz-box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);
-webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);
box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);
border-radius: 0px 0px 0px 0px;
background: none;
.post-footer
{
display: none;
}
#Attribution1 {display: none;}
External Links
(Top Tips and Tuts from other sites)
to Google Blogspot / Blogger's standard templates.
Important Note
Although you will find easier guides on the web, you don't need to read this page at all.
Why? Because what this page offers is a completely
BLANK TEMPLATE
with most of these hacks applied*, downloadable by clicking the link.
These hacks have been applied to a standard Google template.
In theory this means you can host your own customised code..
..and yet retain the full functionality of Google's editing tools..
Voila! Full custom free CMS..
From time to time Google will change the rules..
..so these hacks are guaranteed not to remain working.
I will, however, endeavour to keep it updated.
HTML Hacks
(via Template - Edit HTML)
Hide Blog Title
Hide Blog Title
Look for: .Header h1 {
Add: display:none;
Hide Blog DescriptionLook for: .Header .description {
Add: display:none;
Remove Subscribe to: Posts (Atom)
- (Go to dashboard/ template/ edit HTML)
- Click the 'Expand Widgets Templates' box
- Find and Remove:
<b:include data='feedLinks' name='feedLinksBody'/>
Remove Home (link)
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
Remove Home (link)
- (Go to dashboard/ template/ edit HTML)
- Click the 'Expand Widgets Templates' box
- Find and Remove:
Remove NavBar
- (Go to dashboard/ template/ edit HTML)
- Paste inside the head section:
{ display: none !important; }
Remove Top Margin
- (Go to dashboard/ template/ edit HTML)
- Find outer-wrapper
- Look for margin-top: (value)px;
- Set the value (can be a negative value)
Remove Top Padding / Margin
- (Go to dashboard/ template/ edit HTML)
- Find <Variable name="main.padding.top"
- Change value= to "0px"
<Variable name="main.padding.top" description="Main Padding Top" type="length" default="0px" value="0px"/>and/or
.post-outer {
margin: 0 0 25px;
Remove Post Background
- Create a 1px transparent .png
- Upload and copy it's URL
- Go to dashboard/ template/ edit HTML
- Replace background-color: $(post.background.color) with background: url(image_url) repeat;
Remove Image Border
.post-body img, .post-body .tr-caption-container {
padding: 0px;
Remove Post Footer
Paste this code just after ]]></b:skin> :
Remove Page Title
<b:if cond='data:blog.pageType == "static_page"'>
<style>
.post-title.entry-title{
display: none;
}
</style>
</b:if>
Centre Title
h3.post-title { text-align:center; }
Remove Post Footer
Paste this code just after ]]></b:skin> :
<style type='text/css'> <b:if cond='data:blog.pageType != "index"'> .post-footer {display:none !important;} </b:if> </style>
Remove Page Title
Paste this code just after </b:skin> :
<b:if cond='data:blog.pageType == "static_page"'>
<style>
.post-title.entry-title{
display: none;
}
</style>
</b:if>
Centre Title
Paste this code just before ]]></b:skin> :
Remove Attribution
Search for Attribution
locked='false'
Layout -> Edit Attribution -> Remove
locked='false'
Layout -> Edit Attribution -> Remove
Remove Link Underlines
a:link {
text-decoration:underline;
}
a:visited {
text-decoration:underline;
}
a:hover {
text-decoration:underline;
}
To
a:link {
text-decoration:none;
}
a:visited {
text-decoration:none;
}
a:hover {
text-decoration:none;
}
CSS Hacks
(via Template - Customise - Advanced - Edit CSS)
Note that CSS hacks you Customize will disappear from the template editor.
and end up in the HTML template.
Horizontal GradientNote that CSS hacks you Customize will disappear from the template editor.
and end up in the HTML template.
body {
background:-webkit-gradient(linear, left bottom, right bottom, from(#000000), to(#ffffff));
background: -moz-linear-gradient(left, black, white);
}
background:-webkit-gradient(linear, left bottom, right bottom, from(#000000), to(#ffffff));
background: -moz-linear-gradient(left, black, white);
}
Remove NavBar
#navbar-iframe { height: 0px; visibility: hidden; display: none;}#navbar { height: 0px; visibility: hidden; display: none;}
Remove Image Border
.post-body img, .post-body .tr-caption-container, .Profile img,
.Image img, .BlogList .item-thumbnail img {
border: 0px;
-moz-box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);
-webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);
box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);
border-radius: 0px 0px 0px 0px;
background: none;
Remove Post Footer
.post-footer
{
display: none;
}
Remove Attribution
#Attribution1 {display: none;}
External Links
(Top Tips and Tuts from other sites)
Không có nhận xét nào:
Đăng nhận xét