( Adding HTML Script )
<script type=”text/javascript”>
/*<![CDATA[*/
// jquery replacetext plugin https://ift.tt/1r99t7o
(function(e){e.fn.replaceText=function(t,n,r){return this.each(function(){var i=this.firstChild,s,o,u=[];if(i){do{if(i.nodeType===3){s=i.nodeValue;o=s.replace(t,n);if(o!==s){if(!r&&/</.test(o)){e(i).before(o);u.push(i)}else{i.nodeValue=o}}}}while(i=i.nextSibling)}u.length&&e(u).remove()})}})(jQuery);
var s = “[full_width]”;
var o = “[left_sidebar]”;
var u = “[right_sidebar]”;
$(“.post *”).replaceText(s, “<style>@media screen and (min-width: 980px){.item #main-wrapper{width:100% !important;max-width:100%!important;float:none!important;border-right:0!important;border-left:0!important}.item #sidebar-wrapper{display:none;}.item #main-wrapper #main{margin-left:0!important;margin-right:0!important}}</style>”);
$(“.post-body *”).replaceText(o, “<style>@media screen and (min-width: 980px){.item #main-wrapper{float:right!important;border-right:0!important;margin-right: 0px !important;}.item #sidebar-wrapper{float:left!important;padding-left:0!important;}}</style>”);
$(“.post-body *”).replaceText(u, “<style>@media screen and (min-width: 980px){.item #main-wrapper{float:left!important;border-right:0!important;margin-right: 0px !important;}.item #sidebar-wrapper{float:right!important;padding-left:0!important;}}</style>”);
/*]]>*/
</script>
Now Save your template and go to pages to add sitemap.
Step-2 ( Adding Shortcodes ) – Most Important !!
On the post/page content, add the following code in the content area.
- Full Width Post;
- Left Sidebar;
- Right Sidebar;
Now click publish button and check the published page to see the newly added sitemap widget.
Note:- This widget mainly work’s with templates made by Soratemplates, but if it is still not working on your site, Don’t get panic just comment down your blog address.
Note* :- Some of the ttemplates made by soratemplates already has this feature.
Conclusion
.btn-slide, .btn-slide2, .btn-slide3 { width: 100%; box-sizing: border-box;
}
No comments:
Post a Comment