Add dynamic Text Resizer to your posts, in Artisteer templates
1. Log in to your dashboard--> Design- -> Edit HTML
2. Click on "Expand Widget Templates"
3. Search "Ctrl+F" and find </head>. Right above him add the next one:
<script src='http://artistutorials.googlecode.com/files/dynamic-font-resize.js' type='text/javascript'/>
4. Find ]]></b:skin> and before it paste the next code:
#your-body, #your-body p, #your-body a, #your-body h1, #your-body h2, #your-body h3, #your-body h4, #your-body h5, #your-body li, #your-body li a,#your-body ul,#your-body ol li,#your-body ol li a {} #resize-box { background-color:#F0F0F0; border:1px dashed #A0A0A0; float:right; margin:5px; } #resize-box:hover { background-color:#E0E0E0; } #resize-box a { color:#909090; display:block; float:left; font-family:Arial,sans-serif; font-size:16px; padding:5px 10px; text-decoration:none; } #resize-box a:hover { color:#303030; }
5. Now find <data:post.body/> and replace it with the following one:
<div id='your-body'><data:post.body/></div> <b:if cond='data:blog.pageType == "item"'> <div id='resize-box'> <a href='javascript:increaseFontSize()' id='increase'><b>A<sup>+</sup></b></a> <a href='javascript:decreaseFontSize()' id='decrease'><b>A<sup>-</sup></b></a> </div> </b:if>
NOTE: In this case the resizer box will be found on the post page at the bottom of the post, it will not be displayed on the home page. If you want to display it on the home page delete the red code.
Also if you want the box to appear top of the post just replace the code on step 5 with:
<b:if cond='data:blog.pageType == "item"'> <div id='resize-box'> <a href='javascript:increaseFontSize()' id='increase'><b>A<sup>+</sup></b></a> <a href='javascript:decreaseFontSize()' id='decrease'><b>A<sup>-</sup></b></a> </div> </b:if> <div id='your-body'><data:post.body/></div>
6 comments
Nu ma descurc la ultima parte mai deloc poti fi mai explicit in ultima parte?
Unde vrei sa iti apara, la sfarsitul postarii sau la inceputul ei?
la inceputul ei numai ca eu am instaalt uns cript cu read more si e un pic mai complicat parca
Trimite-mi template-ul tau prin e-mail si il fac eu. Email-ul il gasesti la contact.
this is just perfect,another option i wanted but didnt thought about!
ma poti ajuta sa instalez acest script?
Click to Add a New Comment
Leave your comment
- If you're asking a question click the Subscribe By Email link, below the comment form, to be notified of replies.
- Do NOT add links to the body of your comment as they will not be published.
- Only the comments posted in ENGLISH will be approved.
- If you have a problem check first the comments , maybe you will find the solution there.