Sunday, August 9, 2009

Create a Gadget that can only be Viewed on your Blogger Homepage


  • Log In to Blogger
  • Click Layout
  • Click one of your 'Add a Gadget' buttons
  • Click the HTML/JavaScript option.
  • For the Title, write Gadget-Homepage. For the content, write ABC123. (This is temporary.)
  • Click Save
  • Now, click Edit HTML towards the top of the page.
  • Download Full Template (Optional)
  • Check Expand Widget Templates
  • Ctrl+F and search for Gadget-Homepage
  • Under it you should see a line that says:
    <b:includable id="main">

    Click directly after it, press enter, and paste this code in the empty space:
    <b:if cond="data:blog.url == data:blog.homepageUrl">

  • Scroll down a little bit, and find:
    <b:include name="quickedit">

    In the blank space above it, paste:
    </b:if>

  • Click Save Template
  • Now press the Layout tab towards the top of the page.
  • You can now change the title and content of the Gadget-Homepage gadget, and it will stay only on your homepage.

No comments:

Post a Comment