Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1751

    Hi! Quick question for you guys!

    I recently purchased the CleanCut theme [and I'm looooving it!] and was wondering if it’s possible to create a toggle menu within a toggle title.

    In other words, if I have

    A. Restaurant Menu

    Content A

    A.1 Breakfast

    —Content A.1

    A.2 Lunch

    —Content A.2

    A.3 Dinner

    —Content A.3

    I want to display “A. Restaurant Menu” only and then, once its content opens, I want to have additional items [A.1, A.2, A.3, etc] with the capability of doing the toggle magic trick too. (Sorry about the “technical” vocabulary! I know nothing about code and appreciate your time and help!)

    I tried something like:

    [toggle title='Restaurant Menu' close='true']

    Enjoy a good meal with us!

    [toggle title='Breakfast' close='true']

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    </toggle>

    [toggle title='Lunch' close='true']

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    </toggle>

    The result is: I can see the subtitles listed with no problem, but if I try to open the content of any sub-menu, the code makes the Main Title close back!!!

    THANKS!

    #35995

    You would need to rewrite the shortcode javascript and php code to achieve what you want. That’s not an easy modification and beyond the scope of this support forum.

    #35996

    … Thanks for the quick reply, Dude!

    I will investigate more and maybe I can implement the change down the road! :)

    #35997

    I am trying to achive it too and I don’t understand why it’s not in a basic package. It would be really powerful and elegant tool how to make complicated posts much more simpler. Have you done it, prsol?

    Thank you.

    #35998

    Hi walkingcliche,

    The effect is created with javascript and css. So it would need to be re-written in order to support complicated nesting (not an easy thing to do with shortcodes).

    I’m not sure you’ll get a response from prsol however since it was about 11 months ago that he last posted.

    Regards,

    Devin

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Toggles within Toggles!’ is closed to new replies.