Details New Sript Blogger પર Table of Contents Add કરતા સીખો

Also Read

 

Blogger પર Table of Contents Add કરતા સીખો









Theme Edit કરો






Step I : Blogger પર Login થઈ Theme માં Edit HTML કરો.


<head>




Step II : </Head> ને Search કરો.







<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>
<script type='text/javascript'> 
//<![CDATA[ 
//*************TOC Plugin V2.0 
function mbtTOC2(){var a=1,b=0,c="";document.getElementById("post-toc").innerHTML=document.getElementById("post-toc").innerHTML.replace(/<h([\d]).*?>(.*?)<\/h([\d]).*?>/gi,function(d,e,f,g){return e!=g?d:(e>a?c+=new Array(e-a+1).join("<ol class='point"+a+"'>"):e<a&&(c+=new Array(a-e+1).join("</ol></li>")),b+=1,c+='<li><a href="#point'+b+'">'+f+"</a>",a=parseInt(e),"<h"+e+" id='point"+b+"'>"+f+"</h"+g+">")}),a&&(c+=new Array(a+1).join("</ol>")),document.getElementById("mbtTOC2").innerHTML+=c}function mbtToggle2(){var a=document.getElementById("mbtTOC2"),b=document.getElementById("Tog");"none"===a.style.display?(a.style.display="block",b.innerHTML="hide"):(a.style.display="none",b.innerHTML="show")} 
//]]> 
</script>









Step III : આ Code Past કરો. </head> Section ના Just ઉપર આ Code Past કરો.










    ]]></b:skin>




    Step IV - હવે HTML Theme પર જઈ


    ]]></b:skin> Code Search કરો


    ]]></b:skin> આ Code ના Just ઉપર નીચેનો Code Paste કરો અથવા આ Code Direct CSS માં પણ Set Kari શકાઈ છે.



       /*####TOC Plugin V2.0*/
    .mbtTOC2{
    border:5px solid #0008FC ;
    border-radius: 10px 50px 10px 50px;
    box-shadow:5px 5px 5px 5px grey;
    border-style:dashed;
    background-color:#ACDEFB;
    color:#707037;
    line-height:1.4em;
    margin:30px auto;
    padding:20px 30px 20px 10px;
     font-family:Oswald, arial;
     display: block;width: 70%;
     }

    .mbtTOC2 button{
     background:#ACDEFB;
     font-family:oswald, arial; font-size:22px;
     position:relative;
     outline:none;
     border:none;
     color:#2E2E2E;
     padding:0 0 0 15px;
     }


    .mbtTOC2 button a {
     color:#FF0313;
     padding:0px 2px;
     cursor:pointer;
     } 
     

    .mbtTOC2 button a:hover{
     text-decoration:underline; 
     } 
     


    .mbtTOC2 button span {
    font-size:15px; margin:0px 10px;
     }

    .mbtTOC2 li{margin:10px 0; } 

    .mbtTOC2 li a {
    color:#EA1414;
     text-decoration:none;
     font-size:18px;
     text-transform:capitalize;
     } 
     



    .mbtTOC2 li a:hover {
    text-decoration: underline;
    }
    .mbtTOC2 li li {margin:14px 0px;}
     
    .mbtTOC2 li li a{
     color:#040404;
     font-size:15px;
     }



    .mbtTOC2 ol{counter-reset:section1;list-style:none}
    .mbtTOC2 ol ol{counter-reset:section2}
    .mbtTOC2 ol ol ol{counter-reset:section3}
    .mbtTOC2 ol ol ol ol{counter-reset:section4}
    .mbtTOC2 ol ol ol ol ol{counter-reset:section5}
    .mbtTOC2 li:before{content:counter(section1);counter-increment:section1;position:relative;padding:0 8px 0 0;font-size:18px}
    .mbtTOC2 li li:before{content:counter(section1) "." counter(section2);counter-increment:section2;font-size:14px}
    .mbtTOC2 li li li:before{content:counter(section1) "."counter(section2) "." counter(section3);counter-increment:section3}
    .mbtTOC2 li li li li:before{content:counter(section1) "."counter(section2) "."counter(section3) "." counter(section4);counter-increment:section4}
    .mbtTOC2 li li li li li:before{content:counter(section1) "."counter(section2) "."counter(section3) "." counter(section4)"." counter(section5);counter-increment:section5}
    /* 
    .point2 {list-style-type:lower-alpha} 
    .point3 {list-style-type:lower-roman} 
    .point4 {list-style-type:disc} 
    */












    <data:post.body/>




    Step V - અને પછી પાછો એક Code Search કરો.
    Search <data:post.body/>

    Step VI - આ Code મળ્યા પછી તેને નીચે ના Code સાથે Replace કરો. 
    <data:post.body/> ને Remove કરી તેની જગ્યાએ આ Code Paste કરો 






    <div id="post-toc"><data:post.body/></div>








    Blogger Post Editing



    Step VII- હવે Blogger Post કે Page ના HTML માં જાઓ અને Table of Contents જ્યાં મૂકવું હોય ત્યાં નીચે નો Code Past કરો.


    Table Code




    <div class="mbtTOC2"> 
    <button>Contents <span>[<a onclick="mbtToggle2()" id="Tog">hide</a>]</span></button> 
    <div id="mbtTOC2"></div> 
    </div>



    Last Code






    Step VIII - અને HTML Page માં Blog Post ના Last મા નીચે નો Code Past કરો.

       <script>mbtTOC2();</script>










    Script Download





    તમે અહીં Click કરી Script Download કરી શકો છો





    K K Gandhi English Medium School Gorwada

    JINHeMANT™ एक Hin-Glish ब्लॉग है, और हम 2019 से Blogging कर रहे हैं हम इसे सबसे बड़ा हिंदी Blog बनाना चाहते है इसके लिए हमे आपकी Help की आवश्यकता रहेगी हम उम्मीद करते हैं की हमारे द्वारा बताई गयी जानकारी आपके लिए Helpful होगी अगर आपको हमारी Post अच्छी लगी हो तो Comment और Blog को Follow करना करना न भूले धन्यवाद् । youtube telegram instagram facebook twitter pinterest rss

    إرسال تعليق (0)
    أحدث أقدم
    Do you have any doubts? chat with us on WhatsApp
    Hello, How can I help you? ...
    Click me to start the chat...
    Youtube Channel Image
    JINHeMANT™ Subscribe To Watch More Blogging and Trending Tutorials
    Subscribe
    close