Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1307185
    rted
    Participant

    Hi,

    I am trying to use custom javascript/css snippet to control some content on my home page.
    In short there is a section with 2 rows. on the first row 2 buttons, and on the second 6 images.

    What i want is when you press on button1 it will hide 3 images and show 3 others. and when you press the second button the opposite 3 images will show and hide.

    The code works perfectly on jsFiddle.
    https://jsfiddle.net/hoq0djwc/1/

    But whenever i do it with cornerstone it doesnt work..

    I insert the snippet with custom css/js area of cornerstone.
    And of course name all the ids and clases accordingly. still nothing.

    The images do disappear when i insert the snippet, but nothing shows when i click a button.

    If anybody knows a way it would be great.

    Thanks!

    #1307266
    Rupok
    Member

    Hi there,

    Thanks for writing in! It should work if you add the JavaScripts properly within Custom JS area. You can provide your URL and point use where you have used this so that we can have a look.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1307185 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>