ArrayHQ / atomic-blocks-theme

34 stars 14 forks source link

requesting template with sidebar #2

Open cubefoo opened 6 years ago

cubefoo commented 6 years ago

Wondering why there's currently no sidebar template and if you would consider integrating this option. Are there any sidebar related issues with Gutenberg?

mikemcalister commented 6 years ago

Hi there,

We definitely will have a sidebar solution in the future. There are some technical considerations about sidebars in the new style of page building with blocks. Where are you looking to add a sidebar? A post, page, blog index?

The Gutenberg team is working through some considerations about sidebars that may help us determine how to do them going forward. I don’t want to necessarily start adding sidebars like the old style themes because we’re trying to look forward with Atomic Blocks. This is a good opportunity to rethink sidebars and how/if we implement them. There’s a good amount of research that says sidebars are more trouble than they’re worth for visitors, depending on their use.

I’ll take a look at maybe doing this in a template so there is at least basic support, but I don’t think you’d be able to apply a template to a blog index. So it would be limited to pages basically.

cubefoo commented 6 years ago

I'm using a sidebar on a membership page where members can view their account information without scrolling. The sidebar also shows useful instructions for editing their account. This information would be lost without a sidebar since most people don't scroll while they edit some info on the frontend.

Besides this I agree sidebars are overused on the majority of websites and are usually more distracting than useful.

mbaiti commented 5 years ago

Optional sidebar on blog index would be great!

flowdee commented 5 years ago

Sidebar template (which i would use for the blog index) as well for the single posts (optional?) would be great!

lynt-smitka commented 4 years ago

Hi, we are working on a full equipped WordPress Kit for our purposes (sorry, all docs are in the czech language currently) and the sidebar is one of features we implemented.

There is the function to register the sidebar: https://github.com/NasWP/naswp-kit-atomic/blob/master/wp-content/themes/naswp-kit-atomic/classes/class-naswp-sidebar-atomic.php

The page template: https://github.com/NasWP/naswp-kit-atomic/blob/master/wp-content/themes/naswp-kit-atomic/templates/template-sidebar.php

And the CSS: https://github.com/NasWP/naswp-kit-atomic/blob/4d56abd9e8bf09a536f9c8bb0e4c82be8a9f8080/wp-content/themes/naswp-kit-atomic/style.css#L51-L77

mbaiti commented 3 years ago

Thanks @lynt-smitka ! Works fine!

Is there any chance to get the sidebar on the homepage/blog page?