We're using the latest version of WordPress with the Astra theme and Astra Pro add-on.
On our homepage, we've set the Container Layout to "Full Width" under the Astra settings. Paragraph blocks on the page correctly align themselves to the left edge of the page, but Toolset View blocks on the page do not. They sit centered in a 1200px-width container. Any idea what's causing this, or how to work around it? You can view the public face of the site at hidden link.
I should also add that what I'm trying to accomplish is simply adding a background color (stretching edge-to-edge) to the HTML produced by the View blocks. The 1200px content width is fine.
Is there a way to attached an ID or class to the parent '<div class="wpv-view-output" data-toolset-views-view-editor="b8f3455b4a1053d9626e12c05d44dda8">'?
Thanks for your response. I'm using the Classic Editor rather than the Block Editor to define my view. Is it possible to add a CSS class via the Classic Editor?
Please check the following screenshot.
- hidden link
You can select the block navigation and select the view block and on right sidebar under the "Layout Customizations" you can add your desired CSS class.
My View block doesn't have the sub-blocks that your screenshot features, nor does it have the metaboxes. I'm attaching a screenshot so you can see my screen.
In the meantime, I'm using the Container block as a means to work around this issue.
Ok great - I see you must have created the view in legacy mode and then you added the legacy view using the view block.
I see as you used workaround and if that works for you then you're welcome to mark resolve this ticket or please let me know if you still require further assistance.
As you can see with your view's "Loop Editor" section, you should add such custom HTML with CSS class that should make the view's output full width.
- hidden link
That will require you a bit of work where you will have to add such with with custom CSS class to make the div full-width. The current solution you chose is also fine using container.