Article Template - Sidebar to show only H1 headings

2 コメント

  • Ifra Saqlain
    Community Moderator

    Hey Abid,

    You can try this code:

    Add this code on your script.js file.

    var hideSidebarSubHead = document.querySelector('.sidebar h2, .sidebar h3'); = 'none';

    ('.sidebar h2, .sidebar h3'): Here is class .sidebar and you have to update as per your classes


    If any issue let me know.


    Thank You


  • Ifra Saqlain
    Community Moderator

    Another example:

    Step 1: Add jQuery library on document_head.hbs template.

    <script src=""></script>


    Step 2: Copy this given code and paste at your script.js file at the bottom.

    $(document).ready(function (){
    $(".sidebar h2, .sidebar h3").hide(); // Update class name as per yours






Powered by Zendesk