• Hi,

    is there a way to set by code the global max-width of generate blocks?

    I developing a custom theme and I would like to set this variable reading it from theme.json or a custom option in WP Customizer.

    Thank you

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Support ying

    (@yingscarlett)

    I’m not sure I understand the issue you described, can you explain some more with screenshots?

    Thread Starter Stefano

    (@stefacchio)

    Ok, so I have a custom option in WP Customizer of my custom theme:

    I used generateblocks_global_container_width filter and it works on Gutenberg editor blocks:

    But I’d like also the same value to be automatically set on Generate Blocks > Settings:

    In this case it should be 1300px.

    I hope I have managed to explain myself well.

    Thanks

    • This reply was modified 5 months ago by Stefano.
    • This reply was modified 5 months ago by Stefano.
    Plugin Support ying

    (@yingscarlett)

    Sorry, that can not be done without custom development.

    If you are using the filter, the field is useless, no matter what value you entered there, it does not affect the real max-width value.

    Thread Starter Stefano

    (@stefacchio)

    Yes, exactly, but it is confusing for a normal user

    Plugin Support ying

    (@yingscarlett)

    Then the easier option is to fill the field instead of using the code.

    Thread Starter Stefano

    (@stefacchio)

    No, I don’t think so, because in this case there are two same field to fill… it’s confusing for the user

    Plugin Support Alvind

    (@alvindcaesar)

    If this setup is for the user, you should stick with the default GenerateBlocks settings field and avoid overcomplicating things.

Viewing 7 replies - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.