Les nouveautés et Tutoriels de Votre Codeur | SEO | Création de site web | Création de logiciel

seo How to Make the Blogger Posts Have a Calendar for the Date in 2013

Seo Master present to you: It's quite common to see calendar style dates next to some WordPress posts but for the Blogger platform it isn't always an very easy task to add this. But who said you can't do it? You need to look no further than this blog. In this tutorial, we'll learn how to create a calendar style date for your Blogger posts.


How to create calendar style dates in Blogger

Step 1. Go to Settings > Language and Formatting - Date Header Format and change the date format as you can see in my example below (put day first, then the month and finally the year)
 

Step 2. Then go to Template > Edit HTML


Step 3. Select the "Expand Widget Templates" checkbox

Step 4. And search (CTRL + F) the following line:

<h2 class='date-header'><span><data:post.dateHeader/></span></h2>

Step 5. In case you find it twice, then you should replace it twice with this code:

<div id='Date'>
<script>changeDate(&#39;<data:post.dateHeader/>&#39;);</script>
</div>
<b:else/>
<div id='Date'>
<script>changeDate(&#39;&#39;);</script>
</div>

Step 6. Now search for this tag (CTRL + F to find it)

</head>

Step 7. And paste the code from below just ABOVE the </head> tag:

<script type='text/javascript'>
//<![CDATA[
var DateCalendar;
function changeDate(d){
if (d == "") {
d = DateCalendar;
}
var da = d.split(' ');
day = "<strong class='date_day'>"+da[0]+"</strong>";
month = "<strong class='date_month'>"+da[1].slice(0,3)+"</strong>";
year = "<strong class='date_year'>"+da[2]+"</strong>";
document.write(month+day+year);
DateCalendar = d;
}
//]]>
</script>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<style type='text/css'>
/* Calendar style date
----------------------------------------------- */
#Date {
background: transparent url(http://www.matrixar.com/-NVj6tUKJgLo/UBShW2dCLSI/AAAAAAAACZk/3TkTa8Hzqt0/s1600/calendar07.png) no-repeat;
display: block;
width:60px;
height:60px;
float: left;
margin: 15px 2px 0 -108px;
padding: 0 0 8px 0px;
border: 0;
text-transform: uppercase;
}
.date_month {
display: block;
font-size: 15px;
font-weight:bold;
margin-top:-1px;
text-align:center;
color:#ffffff; /* Month's color */
}
.date_day {
display: block;
font-size: 28px;
font-weight:bold;
margin-top:-8px;
text-align:center;
color:#282828; /* Day's color */
}
.date_year {
display: block;
font-size: 10px;
margin-top:-8px;
text-align:center;
color:#282828; /* Year's color */
}
</style>
</b:if>


Before saving your Template, we can make some changes:
  • To change the calendar style, replace the url in blue with yours;
  • If the calendar doesn't appear correctly, change -108 with 0;
  • With green are marked the areas where you can change the color of the dates

Step 8. Now Preview your Template and if everything is ok, click on the Save button. Enjoy!
2013, By: Seo Master

seo How to Change Default Anonymous Avatar in Blogger Comments 2013

Seo Master present to you: In the last tutorial, I wrote about how you can change avatars size in blogger comments and in this simple tutorial, I will show you how to change or customize default avatar of anonymous commenters or Blogger users with no picture added on their profiles. After Blogger announced new feature of threaded comment, we can still customize it by adding a jQuery plugin to our template and replacing the default anonymous avatar found at this

URL http://img1.blogblog.com/img/anon36.png
and the one for blogger users http://img2.blogblog.com/img/b36-rounded.png

...with our own.

anonymous, default avatar, blogger blogspot

Step 1.

Go to Dashboard - Template - click on the Edit HTML button and then Proceed



...then select Expand Widget Template (don't forget to make a backup)

    Step 2. Find (CTRL + F) this code in your template:

    </body>

    Step 3. Add the following code just above it:

    <script src='http://code.jquery.com/jquery-latest.js'/>
    <script>
    $(&quot;img[src=&#39;http://img1.blogblog.com/img/anon36.png&#39;]&quot;)
    .attr(&#39;src&#39;, &#39;http://www.matrixar.com/-Zphr2YJH_6w/T6ZZE4YeNBI/AAAAAAAACF0/Tyuj8hkOpdc/s1600/default_avatar.gif&#39;)
    .ssyby(&#39;blank&#39;)
    </script>
    <script src='http://code.jquery.com/jquery-latest.js'/>
    <script>
    $(&quot;img[src=&#39;http://img2.blogblog.com/img/b36-rounded.png&#39;]&quot;)
    .attr(&#39;src&#39;, &#39;http://www.matrixar.com/-eKbzORzVaBQ/T6ZXHmdgHqI/AAAAAAAACFs/rVy3T4gxojM/s1600/blogger-user.png&#39;)
    .ssyby(&#39;blank&#39;)
    </script>

    Step 4. Save the Template

    How to change avatar:

    For Anonymous users: Replace the code in red with the url address of your image
    For Blogger users: Replace the URL in blue with your own.

    You can choose one from these below (copy the url address):


    http://www.matrixar.com/-Zphr2YJH_6w/T6ZZE4YeNBI/AAAAAAAACF0/Tyuj8hkOpdc/s200/default_avatar.gif


    http://www.matrixar.com/-p4JvM7rWNG4/T6ZcU5eKqTI/AAAAAAAACGM/K0DB35A5brE/s1600/facebook.gif


    http://www.matrixar.com/-5nGzg5T-9qA/T6ZbL9JF0iI/AAAAAAAACF8/TvTnURwsNb0/s1600/anonymous3.png



    http://www.matrixar.com/-oivPlkvBNBY/T6ZoNQhfAII/AAAAAAAACGY/3gem5DBmmQ8/s1600/blogger-user.png


    That's it!
    If you liked this post, please consider sharing it.

    2013, By: Seo Master

    seo How to Hide Blogger Sidebar to Display AdSense For Search Results 2013

    Seo Master present to you: When visitors are searching for content on your blog, you have the following options to display the search results: opening the results in the same window, in a new window or within your own site using an iframe.

    But the best option is to display the search results in your own site/blog, mainly because you are not sending people off your blog and when they are taken to a new page of search results, so it could be confusing many times because it doesn't look anything like your site or Google. Therefore, displaying the search results within your site, could look more professional and could also increases your page views and your revenue from the ads on the search page.

    A problem that many bloggers are facing is that the page which displays the AdSense for search results must be at least of 800 px wide, so the posting area must be of minimum 800px and there's nothing like that in most of the blogs.

    So, what we will do in this tutorial is to set up the search results to be displayed in a static page (none of other posts or pages will be affected) where we'll remove the sidebar, so that we'll have enough space to make the post/page section of 800px wide. Also, we will create a static page specially designed for the search results, then create a new AdSense for search in our AdSense account and finally add a small snippet of code top in your Blogger template to hide the sidebar in that specific page.

    Search results span the width of the page with the sidebar hidden:


    Display AdSense For Search Results Within Blogger Page

    Step 1. Create a new static page on your blog, you can give it the title 'Search Results' but leave the content section empty and then Publish the page.

    Step 2. When you publish the page you have the option to add the page to a menu, choose the third option 'No Gadget Link To Pages Manually' click 'Save and Publish'. OR in case this screen will not appear, right click on View Page and select Copy Link Address. We will need this URL of the page when creating the AdSense for search.

    Step 3. Go To Your AdSense account, then go to My ads tab, select the Search option and Create a New custom search engine. Follow the steps until you come to the Search results option.

    Step 4. Select the 3rd method "on my website using an iframe", then Enter the URL of the page you created into the URL field and continue.


    Step 5. Follow the rest of the set up process, at the end you will be given two pieces of code. The first piece of code is for the actual search bar that you can paste into a Html/Javascript gadget in your sidebar or wherever you want it. The second piece of code you must copy and paste into a new HTML/JavaScript gadget and after clicked on Save - drag it above the Blog Posts area


     Now that you have your page set up with the search results code and your search bar code in your sidebar, it is time to add a snippet of code to your template to remove the sidebar.

    Adding The Code In Blogger To Change the Results Page Layout

    Step 1. In Your Blogger Dashboard, go to Template > Edit HTML - then click Proceed 


    Step 2. Select the "Expand widget templates" box



    Step 3. Find (CTRL + F) the following piece of code

    ]]></b:skin>

    Step 4. Just below it, paste this code:

    <b:if cond='data:blog.url == &quot;PAGE-URL-HERE&quot;'>
    <style>
    .main-inner .columns {
    padding-left: 0px !important;
    padding-right: 0px !important;
    }
    .main-inner .fauxcolumn-center-outer {
    left: 0px !important;
    right: 0px !important;
    }
    .main-inner .fauxcolumn-left-outer, .main-inner .fauxcolumn-right-outer, .main-inner .column-left-outer, .main-inner .column-right-outer {
    display: none !important;
    }
    </style>
    </b:if>

    Note: Replace PAGE-URL-HERE with the url address of the page where the search results will be displayed (the one you have added at the step 4)

    Step 5. Now Save Template and you're done!

    This simple trick allows you not only to hide the sidebar in the search results page, you can, as well, hide it in any page you want... just create your page and follow the same steps. It is also good to hide the sidebar in Privacy Policy Pages, Contact Pages and in all the non-content-based pages with little content or no content at all.

    Make sure to check out other interesting AdSense Tutorials.
    If you need more help, leave your comments below.

    2013, By: Seo Master

    seo Show Blogger Image only in Homepage and Hide it in Post Page 2013

    Seo Master present to you:

    To hide images/pictures from our blogger posts and to make them appear only in homepage, we will have to add just a small piece of CSS code in our template and then use the class "hidepic" each time we want to hide an image.

    Just follow the next steps:

    Step 1. Go to Dashboard - Template - Edit HTML ( click on Proceed button )


     Step 2. Select "Expand Widget Template" (make a backup)

       Step 3. Find (CTRL + F) this code in your template:

          }]]></b:skin>

      Step 4. Copy and paste the following code just below it

      <b:if cond='data:blog.pageType != &quot;index&quot;'>
      <style>
      .hidepic{
      display: none;
      }
      </style>
      </b:if>

      Step 5. Save the Template.

      Now everytime you create a post, firstly add the pic you want to hide and then switch to HTML tab where you'll see the HTML code of the image you have added that will look something like this:

      <div class="separator" style="clear: both; text-align: center;">
      <a href="http://www.matrixar.com/-shsd_c51zRA/T6UeoPgcbII/AAAAAAAACCc/sYI6WB22CaM/s1600/fire_bird_by_fhrankee-d32af8v.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://www.matrixar.com/-shsd_c51zRA/T6UeoPgcbII/AAAAAAAACCc/sYI6WB22CaM/s320/fire_bird_by_fhrankee-d32af8v.png" width="320" /></a></div>

      Note: it should be at the exact location where your image has been added 
      (if the image is at the middle of the text, then the code should be found at the middle)

      Step 6. Replace "separator" with "hidepic" - see the screenshot below:


      If you need more help, please leave a comment below.

      2013, By: Seo Master
      Powered by Blogger.