test

Display custom widgets, css, javascript for seo

To increase the ability to load the page I hit hide the widgets, css, javascript ... to speed up the page load for blogger.
Display custom widgets

1.The Homepage 
Only external display homepage:

<b:if cond='data:blog.url == data:blog.homepageUrl'>
Your code
</b:if>

Hide the homepage

<b:if cond='data:blog.url != data:blog.homepageUrl'>
your code
</b:if>
the only difference between the != and ==

2. Only display archive

<b:if cond='data:blog.pageType == &quot;archive&quot;'>
your code
</b:if>

3. Show only Widgets in the article page 
<b:if cond='data:blog.pageType == &quot;item&quot;'>
your code
</b:if>

4. Show only Widgets in the static page
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
code của bạn

</b:if>

5. Only at the site Widget displays with specific links
<b:if cond='data:blog.url == "URL-blog"'>
your code

</b:if>

6. Show the Widget in home, fashion Label and Archive page 
<b:if cond='data:blog.pageType == &quot;index&quot;'>
your code

</b:if>

7. If you want to hide CSS, add the following code to insert the following lines]]> </ b: skin>. or before the </ head>

<b:if cond='data:blog.url == data:blog.homepageUrl'>
<style type='text/css'>
#PopularPosts1,#HTML1,#HTML2 {display:none}
</style>
</b:if>

Older Post
«
Newer Post
»

No comments: