الخميس، 21 مارس 2013


An example of the above change would be the following code:
<!-- START Customized Page Title by http://www.Tech-Hacks.Com/ -->
<b:if cond='data:blog.pageType == &quot;index&quot;'>
   <b:if cond='data:blog.url == data:blog.homepageUrl'>
      <title><data:blog.title/></title>
   <b:else/>
      <b:if cond='data:blog.pageName != &quot;&quot;'>
         <title><data:blog.pageName/> | <data:blog.title/></title>
      <b:else/>
         <title><data:blog.title/></title>
      </b:if>
   </b:if>
<b:else/>
   <b:if cond='data:blog.pageType == &quot;item&quot;'>
      <b:if cond='data:blog.pageName != &quot;&quot;'>
         <title><data:blog.pageName/> | <data:blog.title/></title>
      <b:else/>
         <title><data:blog.title/></title>
      </b:if>
   <b:else/>
      <b:if cond='data:blog.pageName != &quot;&quot;'>
         <title><data:blog.pageName/> | <data:blog.title/></title>
      <b:else/>
         <title><data:blog.title/></title>
      </b:if>
   </b:if> 
</b:if>
<!-- END Customized Page Title by http://www.Tech-Hacks.Com/ -->
Basically, if you like to show Page Name before Blog Name for titles for all of your page-types, replace the default blogger title tag with the above code, it covers all conditions.
Instructions for implementing the above code into your template:
1. Log on to Blogger.Com
2. Go into your blog
3. Click on “Template” in the sidebar
4. Click on “Edit Template” as shown in the snapshot below

5. In the Edit HTML window look for “<title><data:blog.pageTitle/></title>”

6. Replace that code with the code that I made:
<!-- START Customized Page Title by http://www.Tech-Hacks.Com/ -->
<b:if cond='data:blog.pageType == &quot;index&quot;'>
   <b:if cond='data:blog.url == data:blog.homepageUrl'>
      <title><data:blog.title/></title>
   <b:else/>
      <b:if cond='data:blog.pageName != &quot;&quot;'>
         <title><data:blog.pageName/> | <data:blog.title/></title>
      <b:else/>
         <title><data:blog.title/></title>
      </b:if>
   </b:if>
<b:else/>
   <b:if cond='data:blog.pageType == &quot;item&quot;'>
      <b:if cond='data:blog.pageName != &quot;&quot;'>
         <title><data:blog.pageName/> | <data:blog.title/></title>
      <b:else/>
         <title><data:blog.title/></title>
      </b:if>
   <b:else/>
      <b:if cond='data:blog.pageName != &quot;&quot;'>
         <title><data:blog.pageName/> | <data:blog.title/></title>
      <b:else/>
         <title><data:blog.title/></title>
      </b:if>
   </b:if> 
</b:if>
<!-- END Customized Page Title by http://www.Tech-Hacks.Com/ -->


 تم النشر يوم  الخميس، 21 مارس 2013 ' الساعة  1:35 ص


ليست هناك تعليقات:

إرسال تعليق