[Resolved] Adding id/classes to archive block does not work
This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to:
add some classes to the wrapper div of a custom post type archive block. I've tried to select "Wordpress Archive Output" from block tree but it has no options
Link to a page where the issue can be seen:
I'm sorry, it's a local environment
Thank you for contacting us and I'd be happy to assist.
During testing, I was able to reproduce this and the custom ID or classes include in the main "WordPress Archive" block are not included in the markup on the front-end.
We appreciate you've brought this forward and I've passed this on to the concerned team.
For now, a workaround can be to either add your custom CSS styles to target the default div with class "wp-block-toolset-views-wpa-editor" or if you'd prefer adding a custom class to that div, you can include the following script in the WordPress Archive's "Custom JS":
( screenshot: hidden link )