Closed (works as designed)
Project:
UIkit
Version:
8.x-3.0-rc3
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2017 at 08:57 UTC
Updated:
27 Nov 2017 at 23:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
yazzbe commentedComment #3
Richard Buchanan commentedI tried to duplicate the issue, but it's not appearing on my end. I assigned blocks to both sidebars and restricted to certain pages, but no empty sidebar elements are rendered.
Which block and to which sidebar region was it assigned? The default
block--sidebar-first.html.twig,block--sidebar-second.html.twigandregion.html.twigtemplates all use{% if content %}before printing any elements. The same forpage.html.twig, which uses{% if page.sidebar_first %}and{% if page.sidebar_secondbefore rendering the sidebars.Are you using a sub-theme and overriding any of these templates? If so, could you copy and paste the code for the page, block and region templates?
I've attached screenshots to show the block layout page, configuration of block to restrict to certain pages, and the front page to show no sidebars are being rendered. Using the default
page.html.twigUIkit template would place the sidebars in an<aside>element as a sibling to the<main>element highlighted in the front.png screenshot.Comment #4
yazzbe commentedYou are right. Works as designed.
The subtheme I was testing with was created in an (much) older version of uikit 8.3.x. I removed that one and drushed a new one.
Comment #5
dudeweb commentedcomposer subtheme my_theme does not work!!
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "subtheme" is not defined.