Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #484379

    Hi

    Is it possible to klick on a color-section and then the color-section under it opens. So how can I hide the second color-section at the begin?
    Thx for a fast response, best regards

    #484428

    Hey Atelier_interaktiv!

    Please add two color section elements to your page with a unique ID’s – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png
    and then add following code to Functions.php file in Appearance > Editor

    function add_custom_cs(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery("#your-first-color-section").click(function() {
      jQuery("#your-second-color-section").toggle();
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_cs');

    and then add following code to Quick CSS

    #your-second-color-section { display: none; }

    Cheers!
    Yigit

    #494280

    ok great that works.. and how can I now write more… in the first color-section and if we klick on more.. the second color-section opens? I need a fast response, thx very much!

    #494300

    Hey!

    You can change the code to following one

    function add_custom_cs(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery("#your-first-color-section").click(function() {
      jQuery("#your-second-color-section").toggle();
    });
    jQuery("#your-third-color-section").click(function() {
      jQuery("#your-fourth-color-section").toggle();
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_cs');

    and then add following code to Quick CSS

    #your-fourth-color-section { display: none; }

    Cheers!
    Yigit

    #494382

    sry but that doesn’t work. have a look at the link. http://www.studenteninitiative.ch/web/recht-und-direkte-demokratie/
    If you klick on mehr.. the second color section should open. but that doesn’t work..

    thx, best regards

    #495303

    Hello!

    It is possible but it would require a heavy modification to the theme, unfortunately that’s beyond our support scope. You can request a customisation quote from a third-party provider here.

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘To fold the color-section open’ is closed to new replies.