-
AuthorPosts
-
August 7, 2015 at 10:02 am #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 regardsAugust 7, 2015 at 11:17 am #484428Hey 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 > Editorfunction 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!
YigitAugust 27, 2015 at 4:15 pm #494280ok 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!
August 27, 2015 at 4:34 pm #494300Hey!
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!
YigitAugust 27, 2015 at 6:10 pm #494382sry 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
August 29, 2015 at 12:48 pm #495303Hello!
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 -
AuthorPosts
- The topic ‘To fold the color-section open’ is closed to new replies.
