- Log into your Blogger account and click "Layout" from the "Dashboard."
- Locate the widget you want to hide from the list of items in the blog's sidebar. Click "Edit" to open it.
- Click the URL that appears in the popup box until you get to the end. Look at the last word or group of words that follow the final "=" sign. Depending on the widget, this may be something like "Profile1" or "Image2." Make a note of these words -- they're the identification for your widget. Click "Cancel" to close the widget.
- Click "Edit HTML" at the "Template" page.
- Click "Download Full Template" from near the top of the page. Since you are going to be altering your HTML template, you want to make sure you have a backup just in case you mess something up.
- Click the "Expand Widget Templates" box, and then scroll through the HTML code under "Edit Template" until you find the identifier code you identified when you opened the widget in step 3. Your widget code should be preceded by text that reads "<b widget id=".
- Look for the code that reads "b:includable" somewhere after your widget's identifier. Type the following code right after that text:
- Scroll a bit farther down until you find the "</includable>" code. Type below code just before it.
- Click "Save Template" at the bottom of the "Edit Template" box.
<b:if cond='data:blog.url == data:blog.homepageUrl'>
</b:if>
Example:
<b:widget id='HTML1' locked='false' title='Profile1' type='HTML'> <b:includable id='main'> <b:if cond='data:blog.url == data:blog.homepageUrl'> Widget Code Here </b:if> </b:includable> </b:widget>
0 comments :
Post a Comment