The AJAX Category Posts Widget is an excellent way to enhance the user experience of your blog by providing visitors with easy access to your blog's posts by category or tag. This widget is particularly useful for JagoDesain Themes, a popular Blogger theme known for its customization options and flexibility. By creating this widget with Vanilla JS, you can ensure that it is lightweight, fast, and easy to maintain.
In this step-by-step guide, we will walk you through the process of creating an AJAX Category Posts Widget for JagoDesain Themes with Vanilla JS. We'll cover everything from setting up the necessary environment to deploying the widget on your blog. You don't need to be a coding expert to follow this guide; all you need is a basic understanding of HTML, CSS, and JavaScript.
By the end of this tutorial, you'll have a fully functional AJAX Category Posts Widget that you can customize and add to your JagoDesain Theme-powered blog. So, let's get started!
The AJAX Category Posts Widget is a customizable tool that allows users to browse through the posts on a blog based on categories or tags. With JagoDesain Themes, this widget can be created using Vanilla JavaScript, a lightweight JavaScript library that does not require any external dependencies. The widget uses AJAX (Asynchronous JavaScript and XML) to update the content of the widget without reloading the page, resulting in a faster and smoother user experience.
With the AJAX Category Posts Widget for JagoDesain Themes, users can easily filter through the posts on your blog based on categories or tags. This is particularly useful for large blogs with a lot of content, as it helps visitors find the information they're looking for quickly and efficiently. Additionally, the widget can be customized to match the style and branding of your blog, making it an excellent tool for enhancing the overall design and user experience of your site.
Adding an AJAX Category Posts Widget to your JagoDesain Themes blog has numerous benefits, including:
Overall, the AJAX Category Posts Widget is an excellent tool for improving the functionality and user experience of your blog. By providing visitors with a quick and easy way to browse through your posts, you can increase engagement, improve organization, and enhance your blog's overall design.
Important: It is advisable to create a backup of your current theme before proceeding to add codes in XML. This will serve as a safety net in case any issues arise, and you can always restore your previous theme.
Step 1: Log in to your Blogger Dashboard./* Category posts */ .ctgC{margin-bottom:20px} .ctgC.loaded{animation:opaC .5s 0s;-webkit-animation:opaC .5s 0s} .ctgC .blogPg >*{margin-left:auto;margin-right:auto} @keyframes opaC{0%{opacity:0}100%{opacity:1}} @-webkit-keyframes opaC{0%{opacity:0}100%{opacity:1}}
<b:widget cond='data:view.isHomepage' id='TextList035' locked='true' title='Categorised Post' type='TextList' version='2' visible='true'> <b:widget-settings> <b:widget-setting name='shownum'>6</b:widget-setting> <b:widget-setting name='item-3'>Product</b:widget-setting> <b:widget-setting name='sorting'>NONE</b:widget-setting> <b:widget-setting name='item-2'>Features</b:widget-setting> <b:widget-setting name='item-1'>Art</b:widget-setting> <b:widget-setting name='item-0'>Adventure</b:widget-setting> </b:widget-settings> <b:includable id='main'> <b:include name='content'/> </b:includable> <b:includable id='content'> <!--[ Categorised Posts by Cephasblog Design (techbrainaic.blogspot.com) ]--> <b:loop index='ctgry' values='data:items' var='item'> <div class='ctgW'> <h2 class='title'><data:item/></h2> <div class='ctgC' data-title='' expr:data-home='data:blog.homepageUrl.canonical' expr:data-label='data:item' expr:id='"categoryId" + data:ctgry'> <div class='note'>Loading Posts...</div> </div> </div> </b:loop> <script>/*<![CDATA[*/ Defer.js('https://cdn.jsdelivr.net/gh/fineshopdesign/blogger@main/assets/categoryPosts/js/categoryPosts.min.js','cPts-js',10,function(){for(var cId=document.querySelectorAll('[id^=categoryId]'),i=0;i<cId.length;++i){categoryPost({home:cId[i].getAttribute('data-home'),title:cId[i].getAttribute('data-title'),label:cId[i].getAttribute('data-label'),id:cId[i].id,time:'published',ldCl:'loaded',pstNm:6,thmbSize:600,snptLnth:120,pgn:true})};}); /*]]>*/</script> </b:includable> </b:widget>
Replace the marked parts as per your need.
All Our Posts Are Protected by DMCA. Therefore Copying Or Republishing Of The Contents Of This Blog Without Our Permission Is Highly Prohibited!
If Discovered, Immediate Legal Action Will Be Taken Against Violator.