Hi, I’m creating a template for the listing pages and I would like to add a custom CSS class to some HivePress block.
I’m selecting an added Hivepress block, for exemple Date or Description, then in the Wordpress block preferences, in the “Advanced” section, I add a CSS class.
As soon as I do this, the block breaks and shows an error saying that it cannot be loaded because of the invalid parameter “attributes”.
Further info: I’m using the gtranslate wordpress extension to translate my site I’m adding the “notranslate” class to prevents some element to be translated. This is useful for adresses for example.
Update: Other blocks, non-hivepress blocks, do not break when adding the notranslate class.
We checked this issue from our side, and it seems okay. Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users.
Hi, thanks for trying to reproduce the issue. Unfortunately I still couldn’t get rid of the bug.
I deactivated every the WP extension except HivePress. I also changed the interface language To English US and recreated the permakinks (this sometimes resolves weird bugs).
Whenever I add a CSS class to a HivePress block the block keeps breaking and displaying that error. I have found a 400 error (bad request) in the dev console which appears when I add a CSS class:
GET https://.../wp-json/wp/v2/block-renderer/hivepress/listing-description?context=edit&attributes%5BclassName%5D=test&post_id=28898&_locale=user 400 (Bad Request)