Blogger Forums » Blogger Template Tweaks

Hiding sidebar and footer on static pages

(7 posts)
  1. Maia

    junior member
    Joined: Mar '10
    Posts: 7

    Hi Aneesh,
    First of all, thanks for the valuable help you share with us.
    Recently I've created some static pages with the new feature on two of my blogs. Both blogs use Minima template.
    The static pages are a sort of gallery and I've hidden the sidebar and footer with conditional in one of my blogs. Here is the page.
    I can't do the same in the other blog's gallery and I am not able to find the reason. I tried everything but the conditional has effect on all post pages too and just pushes the sidebar and footer down.
    I could hide every widget one by one but it is too much code in the template.
    Could you please have a look, when you have the time, and advice me what to do.
    Many thanks in advance.

    Posted 2 years ago #
  2. aneesh

    site admin
    Joined: Jul '09
    Posts: 244

    HI Maia,add this code just above </head>
    <b:if cond='data:blog.pageType == "static_page"'>
    <style type="text/css">
    #sidebar-wrapper,.footer-column {display:none;}
    </style>
    </b:if >

    and you will have both of them hidden.

    Posted 2 years ago #
  3. Maia

    junior member
    Joined: Mar '10
    Posts: 7

    Thank you very much Aneesh.
    The problem was that in the second blog I inserted it by mistake above the ]]></b:skin>.
    Now I changed it right above the </head> and it works perfectly.
    Thank you very much again for your immediate answer.

    Posted 2 years ago #
  4. aneesh

    site admin
    Joined: Jul '09
    Posts: 244

    i am glad that it helped. you have got a nice blog. Get a Custom Domain

    Posted 2 years ago #
  5. Maia

    junior member
    Joined: Mar '10
    Posts: 7

    Thank you.
    Maybe some day I'll get a custom domain but for now I don't see the advantages of it in my case.
    Besides, there are too many changes to make and too many problems with Blogger, after switching to custom domain.
    I'll think about it.

    Posted 2 years ago #
  6. aneesh

    site admin
    Joined: Jul '09
    Posts: 244

    If you buy the domain via blogger, blogger automatically configures the settings for you. if you buy the domain from some other provider, you will have to do it by yourself. There are plenty of tutorials around.

    Posted 2 years ago #
  7. Maia

    junior member
    Joined: Mar '10
    Posts: 7

    I know, I've read many of them including yours but I've also read about the problems people have.
    I don't blog for a living and every time I have to fight the platform I am glad that I don't spend money on it, though it is affordable.
    I published a painting tutorial a few days ago, my original four days' work, and the next day my PR from the homepage was gone. Probably I've used some stop word or made some other mistake, so first I have to learn many things.
    Anyway, I am glad that I've found your blog and that you are so kind to help out people in need.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.