Only Show "Article Comments" under Contributions Page in Guide

5 Commentaires

  • Ifra Saqlain
    Community Moderator

    So should paste that code like this on script file:

    $(document).ready(function () {  

    $( ".my-activities-sub-nav li:contains('Posts')" ).hide();
    $( ".my-activities-sub-nav li:contains('Community comments')" ).hide();
    $(".contributions-table:contains('Post')" ).hide();
    $( ".contributions-table:contains('Community comment')" ).hide();

    });

     

    If already JQuery lib imported on your document_head.hbs template then it would work if not so you have to import JQuery lib on your document head template:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

     

    Now if you having issue let me know.

    Team

    1
  • Ifra Saqlain
    Community Moderator

    Hey,

    You can try this for now. Just copy and paste it on script template  under this $(document).ready(function() {....});

        $( ".my-activities-sub-nav li:contains('Posts')" ).hide();
    $( ".my-activities-sub-nav li:contains('Community comments')" ).hide();
    $(".contributions-table:contains('Post')" ).hide();
    $( ".contributions-table:contains('Community comment')" ).hide();

     

    Thanks

    Team

    0
  • Robert De La O

    Thanks, Ifra. :)

    I couldn't find $(document).ready(function() {....}); under the script template. I tried pasting that along with the code you sent and that didn't hide it. 

     

     

    0
  • Robert De La O

    Thanks for your help Ifra. You've been awesome. :)

    0
  • Ifra Saqlain
    Community Moderator

    Glad to hear :)

    0

Vous devez vous connecter pour laisser un commentaire.

Réalisé par Zendesk