Skip to main content
9 events
when toggle format what by license comment
Jun 19, 2021 at 4:12 comment added Sally CJ Please see my other answer and I hope I got it right! :)
Jun 18, 2021 at 20:59 comment added Elizabeth Thank you!! That works perfectly. I just have one things I can't work out. Is it possible to have additional elements in there? I have RichText and InspectorControls. From what I can tell, the return <div { ...innerBlocksProps } />; can't have anything added to it. If I add anything it puts it around the main container, not in it. Is it possible to do what I'm picturing? (It's a menu. The user adds a menu block and picks a variation (one column or two). But the menu title is the same RichText for either one, and same InspectorControls.)
Jun 18, 2021 at 9:29 comment added Sally CJ Sorry for the delay and for having misunderstood the question.. :) Anyway, see the (completely) revised answer and let me know!
Jun 18, 2021 at 9:25 history edited Sally CJ CC BY-SA 4.0
Better answer
Jun 17, 2021 at 15:29 comment added Elizabeth Added it, Sally. It's just the basic set-up because I'm using a basic block to test making variations.
Jun 17, 2021 at 15:02 comment added Sally CJ To answer that, can I first see your registerBlockType() code? (Append it to your post)
Jun 17, 2021 at 14:45 comment added Elizabeth I appreciate this so much! I poured over the columns code before asking but there's a lot in there. My issue now: the variation picker is working, but I don't know how to automatically close it once one is chosen. Not sure what in the columns code does that. Do you know? Thank you!
Jun 17, 2021 at 14:42 vote accept Elizabeth
Jun 17, 2021 at 12:25 history answered Sally CJ CC BY-SA 4.0