make certain widgets appear on blogspot
make certain widgets appear on blogspot , can be seen when setting up a blog design, sometimes we are constrained by the number of widgets are displayed, so the widget looks crammed and pages to be so long. In other cases, sometimes we just want certain widgets appear only in a specific page, the homepage, static pages, as well as any post pages. I used to talk about how to hide the sidebar Blogger on a particular page, by using conditional tags and CSS (display), and if you want only to hide one or several widgets, it is certainly not appropriate if applied. So, on this occasion, I would like to share about bagamana show or hide one or several widgets on the page.
make certain widgets appear on blogspot , This method is still the same as the previous article I mentioned, namely the use conditional tags (b if), one of the Blogger XML tags, to give the order for an element is displayed on the / certain pages and hide the parts / other pages. Conditional (if) also known usage in PHP, and is also known in English (if clause, conditional sentence), difference with the previous method, the way that I have to offer is not going to use CSS, but use conditional tags directly on the element to be given orders , which in this case are the elements of the widget.
make certain widgets appear on blogspot, notice the following steps
1. Finding ID Widget
Before giving conditional tags, you must know the ID widget to be displayed on any given page. How to find it very easy:
a. There are two ways to access the widget editor (actually 3, namely through the edit HTML, but how it will be more complicated:
- Look at the URL / address in the browser on the pop up window. The layout of the widget ID is at the end of the URL (the URL slide to the right)
- Save the widget Id, for example from the above example, you select the widget Id.
2. Gives Conditional Tags In Element Widget
To display the widget on a particular page, you must add the conditional tags (if cond b) the elements of the desired widget. Here are the steps to add it in accordance with an example of a widget that has been presented above:
a. Go to the page template (Dashboard> Template)
b. Click "Edit HTML"> Proceed.
c. Do not forget to click / check the "Expand Widget Templates" to display all elements in the editor widget.
d. Press CTRL + F, enter the desired widget that has previously been sought and prepared. In this example I will use the widget id "HTML11" as an example and more or less follows the widget element friend
make certain widgets appear on blogspot need to pay attention to the red tag and that is what should be added:
How to display the Widget Only in Home / Index (Homepage)
<b: widget id = 'HTML11' locked = 'false' title = '' type = 'HTML'>
<b: includable id = 'main'>
<b: if cond = 'data: the blog.url == Data: blog.homepageUrl'>
<! - Only display title if it's non-empty ->
<b: if cond = 'data: the title! = & quot; & quot;'>
<h2 class = "title"> <data: title /> </ h2>
</ b: if>
<div class = 'widget-content ">
<data: content />
</ div>
<b: include name = 'QuickEdit' />
</ b: if>
</ b: includable>
</ b: widget>
How to display the Widget Only in Page Posts
<b: widget id = 'HTML11' locked = 'false' title = '' type = 'HTML'>
<b: includable id = 'main'>
<b: if cond = 'data: the blog.pageType == "item"'>
<! - Only display title if it's non-empty ->
<b: if cond = 'data: the title! = & quot; & quot;'>
<h2 class = "title"> <data: title /> </ h2>
</ b: if>
<div class = 'widget-content ">
<data: content />
</ div>
<b: include name = 'QuickEdit' />
</ b: if>
</ b: includable>
</ b: widget>
How to display the Widget Only in Static Pages
<b: widget id = 'HTML11' locked = 'false' title = '' type = 'HTML'>
<b: includable id = 'main'>
<b: if cond = 'data: the blog.pageType! = "static_page"'>
<! - Only display title if it's non-empty ->
<b: if cond = 'data: the title! = & quot; & quot;'>
<h2 class = "title"> <data: title /> </ h2>
</ b: if>
<div class = 'widget-content ">
<data: content />
</ div>
<b: include name = 'QuickEdit' />
</ b: if>
</ b: includable>
</ b: widget>
How to display the Widget Only in One Page (By URL)
<b: widget id = 'HTML11' locked = 'false' title = '' type = 'HTML'>
<b: includable id = 'main'>
<b: if cond = 'data: the blog.url == "Change the page URL here"'>
<! - Only display title if it's non-empty ->
<b: if cond = 'data: the title! = & quot; & quot;'>
<h2 class = "title"> <data: title /> </ h2>
</ b: if>
<div class = 'widget-content ">
<data: content />
</ div>
<b: include name = 'QuickEdit' />
</ b: if>
</ b: includable>
</ b: widget>
Tat's the
make on certain widgets blogspot Appear on my version , you can try and smeoga lucky and successful guys