Step 1: Add a widget "html"
You install a new widget "html / javascript" and check the code in your template. (Model developed gadgets).
original Code:
\u0026lt;b: widget id = 'HTML1' locked = 'false' title =''type = 'HTML & # 39;>
\u0026lt;b:includable id='main'>
\u0026lt;b:if cond='data:title != ""'>
\u0026lt;h2 class='title'> \u0026lt;data:title/> \u0026lt;/ h2>
\u0026lt;/ b: if>
\u0026lt;div class = 'widget-content & # 39;>
\u0026lt;data:content/>
\u0026lt;/ div>
\u0026lt;b:include name='quickedit'/>
\u0026lt;/ b: includable>
\u0026lt;/ b: widget>
Step 2: Replace the code.
You replace the entire section with this new code and you save your template.
Code to replace:
\u0026lt;b: widget id = 'HTML a' locked = 'true' title = 'copyright' type = 'HTML'>
\u0026lt;b:includable id='main'>
\u0026lt;div class='widget-content'>
\u0026lt;p>
\u0026lt;a expr:href='data:blog:url'> \u0026lt;data:blog.title/> \u0026lt;/ a>
\u0026lt;script type = 'text / javascript ">
was MyDate = new Date ()
each year = mydate.getYear ()
if (year < 1000)
year + = 1900
each month = MyDate. getMonth ()
each month array = new Array (" " Janvier, Février " ", " March ", " " Avril, & quot; Mai ", " " Juin, Juillet " ", " " Août, Septembre " ", " Octobre & ; quot;, " " Novembre, Décembre " ")
document.write (" < data: title / + " > array months [month] + " " " & quot + year +. ;)
\u0026lt;/ script>
\u0026lt;/ p>
\u0026lt;p> \u0026lt;data:content/> \u0026lt;/ p>
\u0026lt;/ div>
\u0026lt;b: include name = & # 39; QuickEdit '/>
\u0026lt;/ b: includable>
\u0026lt;/ b: widget>
This gives the result:
Blogger Code Copyright February 2011.
Explanations:
If you have multiple widgets "html / javascript" in your model, check that the ID of the html widget is unique (
id = 'HTML 1 & # 39; ). If not, replace it with another number.
The script displays the date (month and year).
The title of the widget (
< data: title / > ) was placed in the script ( Copyright ). It will appear just before the date. You can change this to whatever you prefer.
Just before the script is placed the url and blog name.
(
\u0026lt;a expr:href='data:blog:url'> \u0026lt;data:blog.title/> \u0026lt;/ a> ). Anything you add in the widget (
\u0026lt;data:content/> ) will appear below the copyright. Example applied.
You can see an example applied this code at the bottom of this page.
Supplement No. 1. For models without the "footer".
If you do not see "footer" (footer) in your model, you look at the end of the html code of your blog (do not expand the widget templates) tag:
\u0026lt; / body> . Just before you insert the new line:
\u0026lt;div class='clear'/>
\u0026lt;b: section class = 'copyright' = id 'copyright' showaddelement = 'yes' />
you save the template and go see Settings ► Page Elements .
You will notice a new section to appear at the bottom of the widget template.
You can right now, place the widget html to this new location. (Remember to save!)
Supplement No. 2. Blogger templates for 2010.
If you use a Blogger template 2010, it will simply "unlock" the widget the section "attribution" in order to insert additional widgets additional at this location.
For this, you want this line of code (not to develop models of gadgets):
\u0026lt;b: section class = 'football' id = 'footer-3' ; showaddelement = 'No ' >
You replace No by yes.
So now, you can place the html widget we created earlier or other widgets you want from the Settings Management page ► Page Elements .
0 comments:
Post a Comment