How to remove sidebar from Home page in Blogger

Share the love!

Hello friends, as you know lastly i posted about How to redirect or refresh a page after specific time and this time i am back with a trick which will allow you to remove sidebar from Homepage in Blogger with the help of CSS and Blogger Conditional Tags so what we are going to do is we will use a condition that if the page which is going to load is not a post nor a static page then apply the CSS and with CSS we will remove sidebar.

Here is a look


What u all need to do is-
  1. Go to Blogger Dashboard
  2. Backup Your Template
  3. Now Click Edit HTML
  4. Now Press Ctrl + F and find </head> and paste the below code above it.
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<style type='text/css'>
/* Replace .sidebar with your sidebar id or class */
.sidebar{
display:none;
}
</style>
</b:if>
</b:if>

Comment with-

Disqus Blogger Google Facebook

0 comments:

Post a Comment

Comments :