UI Style - featured random post slider with/out label

If you want to target a specific post to all your readers, this example may be helpful for you.You can create featured random post with or without specific label.


to do this, you must have jquery installed on your blog.or you can add script tag inside <head> with this :
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js' type='text/javascript'/>
1. edit html
2. add jquery, css, and javascript.
 css :
<link href='https://docs.google.com/uc?id=0B7xJbTAja8i0Q3p2czdZT0VCZ2s&amp;export=download' rel='stylesheet' type='text/css'/>
javascript :
<script src='https://docs.google.com/uc?id=0B7xJbTAja8i0aGZrUEYxajRvQWs&amp;export=download' type='text/javascript'/>

note : if you like you can download css and script above and upload your self to your blog/drive etc whatever you want.

3. add html

press ctrl+f to show search box, then type "<div class='main-wrapper'>" then press enter

copy this html after <div class='main-wrapper'>
<!-- frx Random Post Slider Start -->
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<div id='top-main'>
 <b:section class='main' id='top-main1' preferred='yes'/>
</div>
</b:if></b:if>
<!-- frx Random Post Slider end -->

4. save templates.

5. add widget.

 6. edit widget
<div id="feature-rpost"></div>
<script type='text/javascript'>
//<![CDATA[
$(document).ready(function () {
frx_frpost({
MaxPost:4,
RandompostActive:false,
idcontaint:"#feature-rpost",
ImageSize:200,
tagName:false
});
});
//]]>
</script>


or you can use label (example label : new)


save and reload your blog.

7. Thanks.

watch this on youtube : 



4 comments

Thanks for your coding information UI Online Training

Reply

bro , can you give me the drive url to see that script you rae using in this slider
cz it dosn't work when i download it

Reply

Unclear instructions for a bigginner..👎👎

Reply

Post a Comment