Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1121808
    Lottev89
    Participant

    hi,

    I would like it if someone clicks a “more information button”, that a section with extra information appears below, where i can add this information. It would be amazing if they could close this section as well. Is there a possibility for this in X? If not, what would be a different kind of solution for this?

    Thank you!

    #1121890
    Christopher
    Moderator

    Hi there,

    Please check accordion element as you may find this useful : http://demo.theme.co/integrity-1/shortcodes/accordion/

    If you want to add a button to show and hide the content, please add a raw content element and insert following code :

    <button class="btn">Click here</button>
    <div class="custom-div">text goes here</div>

    Please add following code in Customize -> Custom -> JavaScript :

    jQuery("button.btn").click(function( ){
        jQuery(".custom-div").toggle();
    });

    Hope that helps.

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