Collapsed by Default State Not Updating

Support General Collapsed by Default State Not UpdatingResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40100
    David KennedyDavid Kennedy
    Participant

    Hello,

    I am having an issue with a custom field group remaining closed after toggling the collapsible setting under the field group. It appears the "closed" class is not being removed after toggling.

    Here is an image of the metabox settings page: https://inspire.company/metabox.png
    Here is an image of the gutenberg panel: https://inspire.company/gutenberg.png
    Here is an image of the html with the closed class I am referring to: https://inspire.company/html.png

    #40118
    PeterPeter
    Moderator

    Hello David,

    If you set the meta box style to Seamless, then the postbox header (meta box title) will be hidden. So how can you toggle the meta box on the sidebar?

    The closed class is added by WordPress itself when a meta box is collapsed, it will be removed if the meta box is expanded.

    #40120
    David KennedyDavid Kennedy
    Participant

    I figured out what I did wrong.

    1) I changed to the default WordPress postbox and it was toggled closed.
    2) I changed back to seamless and it disappeared because it held the closed state from before.

    The fix was to switch back to the WordPress postbox and open it. Save. Then switch back to seamless and it's no longer hidden. 🙂

    Your reply helped me figure it out. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.