Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #442604

    Hi, I followed this topic https://kriesi.at/support/topic/hidding-color-section/ to toggle hiding a color section but was unable to make it work.

    You can view the results here: http://christianmacleod.com/test-hide/

    Am I missing something in my development?

    Thanks
    Steven

    #442620

    Hey Steven!

    Your page cannot be found. Can you please check it once again?

    Regards,
    Yigit

    #442644

    Sorry, I changed the name to http://christianmacleod.com/a-test-hide/

    Thanks
    Steven

    #443150

    Hey!

    It seems like you have added your custom CSS class with a dot “.aston-martin-button” in your element, please remove the dot.

    Cheers!
    Yigit

    #443346

    Hi Yigit, thanks for that!

    Ideally I would like one section to replace the other so they swap-out. Is that possible?

    Cheers
    Steven

    #443348

    Hi!

    Please change the code to following one

    function add_custom_cs(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery("#your-unique-color-section-id").hide();
    jQuery( ".your-custom-button-class" ).click(function() {
      jQuery( "#your-unique-color-section-id" ).toggle();
    });
    jQuery( ".your-custom-button-class" ).click(function() {
      jQuery( "#your-unique-color-section-id-secondary" ).toggle();
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_cs');

    Cheers!
    Yigit

    #447375

    Hi Yigit, thanks for the response. This works okay replacing two color sections until I place an easyslider in the hidden section. The toggle works to swap the sections but the second easyslider doesn’t appear. Can you see any reason for this?

    http://christianmacleod.com/home-amswap1/

    Toggle effect with ‘click me’ button

    #448846

    Hey!

    Try adding this code to the Quick CSS:

    #home-images-section2 ul.avia-slideshow-inner {
        min-height: 500px;
    }

    Cheers! 
    Josue

    #449460

    Hi Josue, sorry that had no effect on the outcome.

    I can get both easysliders to work when they’re appearing in order but I use {position: fixed; top: 0px;} to have them both stay at the top. Am I using the best method for that?

    Thanks
    Steven

    #449789

    Hi!

    I don’t quite note the issue yet, can you please create us a WordPress administrator account? post it here as a private reply (the one at the first post no longer works).

    Cheers!
    Josue

    #449982
    This reply has been marked as private.
Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Hiding color section with toggle button’ is closed to new replies.