I've customized the Layout for Pages, setting a 3 columns left sidebar and a 9 width columns area for content on the right.
The 3 columns on the left contain a View which outputs all pages which are also child of this page's parent page - so it's like a section sub-navigation.
Yet, when there are no pages to list here, those 3 columns are empty.
In that case, I'd like to know if there's a way to make the 9 columns on the right automatically fill the whole 12 available columns, if those 3 on the left are empty.
thanks.
Dear Nelson,
There isn't such a feature within the Layouts plugin, as a workaround, I suggest you setup a 12 column row, display only one view, in the view, if there is any result, display the 3 columns + 9 width columns area for content
if there is anything found, display a 12 width columns area for content.
See our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-no-items-found
Content wrapped with [wpv-no-items-found][/wpv-no-items-found] will be output if there are no posts,
Hello,
I've solved it creating a 12 cols row for content (on the Layout) which includes a content template, on which I call a custom shortcode to checks if the current page has brother-pages.
Depending on that condition, I'm displaying:
a) 3 columns + 9 width columns
b) a 12 width column
thanks!