Southern Listeners

Loading
Thanks to Greenlava for this cool gadget. Get yours here

Sunday, March 27, 2011

Dedicated Labels Page

This is a reply to blog reader Azzul. Azzul asked if it is possible to give a dedicated page to Labels gadget as well, just like the Archive gadget. Yes you can, I'll be brief and show you how.


Step 1:

If you're using the old Blogger interface: Go to Dashboard - Design - Page Elements -

If you're using the new Blogger interface: Go to Dashboard - Layout-

Drag your Labels gadget and place it above your Blog Posts elements.



Step 2:

If you don't already have a static page for your labels, go create one.

If you're using the old Blogger interface: Go to Dashboard - Edit Posts - Edit Pages - New Page

If you're using the new Blogger interface: Go to Dashboard - Pages - New Page - Blank Page

Create a blank page with the title Labels. Once you have created the page, click on 'View Page' and note the address of the page.



Step 3: 

If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) -

If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close -  Edit HTML - Proceed -

Find for </b:skin> - Paste the following code directly below </b:skin> :
<b:if cond='data:blog.url != "http://yoboy-testblog7.blogspot.com/p/labels.html"'>
<style>
#Label1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if> 

Change the address in the first line to the address of your labels page (the one that you have gotten in step 2).
The code in place:



Step 4:

If you're using the old Blogger interface: Go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.

If you're using the new Blogger interface: Go to Dashboard ('House' symbol) - Template - Customize - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
#Label1, #Label1 a{
text-align: center;
}


That's all folks. Have fun.

23 comments:

  1. Azzul:
    ooops! spoke too soon.. it worked fine on my test blog but when i applied it on my actual blog, the labels page has all the elements that are on my sidebar. how do i remove them from the labels page and just keep the 'labels' widget there on the labels page?

    take a look: http://thebluescollective.blogspot.com/

    again, much thanks.

    @Azzul: Yes you can remove the sidebar as well. Perform Steps 1 and 2. For step 3, use the code below, and finish it off with Step 4.

    Cheers.

    <b:if cond='data:blog.url != "http://thebluescollective.blogspot.com/p/labels.html"'>
    <style>
    #Label1{
    display:none;
    }
    </style>
    <b:else/>
    <style>
    #Blog1, .column-right-inner {
    display:none;
    }
    </style>
    </b:if>

    ReplyDelete
  2. @azzul: I don't think you've performed step 1 previously, as I've seen your labels being in the sidebar instead of being above the 'Blog Posts' element. This is what happened. Your labels were placed in the sidebar, and your sidebar is removed. That is why you can't see your labels anymore. As for the disappearance of labels widget from the Pages Element, that is totally normal due to the nature of our code.

    Anyway, it can be easily fixed. Remove the code from Step 3 from Edit HTML. Now, perform Step 1 again. Make sure you put it above (or below) your 'Blog Posts', and not in your sidebar. Then, repeat Step 3. Step 4 won't do any harm even if you repeat it hundred times, but just remove any unnecessary duplicates to avoid confusion in the future.

    Cheers and God bless.

    ReplyDelete
  3. @azzul: That is most bizzare. This is what I want you to do. Remove any code that you have added, and stick to the original code from this tutorial. See if you're able to see your label. I think the sidebar removal code is removing your labels as well. If this is the case, I will come up with a new way to hide your sidebar, but just verify that this indeed is the case.. BTW, you can directly email me through this link.

    Cheers and God bless.

    ReplyDelete
  4. hey i was wondering if i could ask a HUGE favour!
    i had centred everything on my blog fine and then a few months later it has gone weird again and i was wondering if you could do it for me?

    basically my labels page is great and the words are centred but the dots are still down the left side? as well as the comments box in my posts :(

    would be so grateful if you could help!
    God bless xxx

    ReplyDelete
  5. Hi YoboY, just wanna ask you what I may have done wrong. I followed everything you instructed here and got my labels page up. however it also shows above every post I view. Please help me :(

    Thanks a bunch,
    Micah

    ReplyDelete
  6. I think I solved it ^^ Thanks to another post you have ^^ I was able to solve it ^^ Thanks a bunch ^^ You saved me much time with this techniques ^^

    I was able to solve it using this post: http://www.southernspeakers.net/2010/11/identify-blogger-gadget-id.html

    ReplyDelete
  7. @Micah: You're gettin the hang of it :) That's good. Have a nice weekend. Cheers.

    ReplyDelete
  8. Help. What am doing wrong? I follow your guide step by step but when I clicked my static page for label "Tag", there's not even a fullstops appear on that page. This is the page http://healthybeautifulblog.blogspot.com/p/tag.html

    ReplyDelete
    Replies
    1. Hi Honeybee,

      It seems like your page has been removed. By the way, if you're trying to add a specific label to your static page, see this link instead:
      Publish Post in Blogger Static Pages

      Delete
  9. I'd like to take my blog list off my home page and put it on a dedicated page, but keep it fully functional meaning the most recent activity of blogs in my list shows first, etc.

    How do you do that?

    Jeff

    http://www.woodfever.net

    ReplyDelete
    Replies
    1. Hi Jeff,

      Assuming your current blog list gadget is fully functional, all you have to do is follow the same steps as stated in the tutorial above, but to your Blog List gadget (instead of the labels gadget..)

      As for the code in Step 3, replace Line 3 from #Label1{ to #BlogList1{

      Everything else remains the same :) Good luck!

      Delete
  10. Hi Yoga,

    Thanks to your great tutorials, I've been able to create dedicated pages for several of my widgets. Everything is working just fine otherwise, but for some reason the content of the pages is not showing on mobile version. Or, actually only one of those dedicated pages is showing on mobile version (the Contact -page). I can't understand what's wrong and how to fix it, so I was wondering if you could take a look? The address of my blog can be found from my profile. Thank you so much!!

    ReplyDelete
    Replies
    1. Hi Kata,

      See if this works. Lets use the Labels gadget as an example (titled as 'Topics' in your blog). Make a duplicate of the code that you're entered for Step 3, but use the following URL instead:

      http://www.kaunisvahvaonnellinen.com/p/tags.html?m=1

      Let me know how it goes.

      Delete
    2. Hei Yoga,

      I'm sorry to say that this trick didn't work :(

      Delete
    3. Hi Kata,

      I'm afraid the mobile view varies from device to device. The only way we can mitigate this issue is by turning off the mobile view, and for a desktop view in mobile devices instead.

      Delete
  11. Hi Yoga,
    Thank you very much for all of your helpful guides.
    I followed all the steps and the static page is empty. what am I doing wrong?
    http://habalabostit.blogspot.co.il/p/blog-page_26.html

    ReplyDelete
    Replies
    1. Hi Navit,

      In Step 3, use 'http://habalabostit.blogspot.com/p/blog-page_26.html', instead of 'http://habalabostit.blogspot.co.il/p/blog-page_26.html' (the difference being blogspot.com, as opposed to blogspot.co.il)..

      Delete
  12. I have another question, How is it possible to change the address of a static page?

    ReplyDelete
    Replies
    1. I'm afraid we do not have the option to change the address. Generally, it takes after title's words. You could always create a duplicate of your page, and publish it with the title (address) that you desire, and delete the old static page (the one with the address that you don't like). This, of course, will only allow you some degree of freedom, as you won't be able to decide how your address will look like entirely..

      Delete
  13. Hey Yoga,

    Thank you for your amazing work here. I was wondering if maybe you could have a look at my blog: http://lexialds.blogspot.gr and see why my labels are shown above the blog posts element and why my entire labels static page gets disorganised with the sidebars colliding with other elements etc.
    I'd really appreciate it mate!

    Cheers!

    ReplyDelete
    Replies
    1. Hi Lexla,

      I can't quite tell where's your labels. Could you send me an annotated screenshot?

      Delete
  14. Thank you sooooo much!!! This is amazing!!! Worked like a charm!

    ReplyDelete

Please use the 'Ask a Question' page to shoot questions that are not related to the tutorial in the post above.