I'm new to magento and would like to create a new theme.
I'm trying to make sense in all of it, but I would really like to hear your approach to theming in Magento 2.
So I understood only basics so far - how to start a new theme, register it, etc. But what I seem not to understand is that as soon as I create everything how to change the layout?
app\design\frontend\MyTheme\theme
When I create my theme with a parent /blank
I can change(update) the layout in /Magento_Theme/layout/default.xml
or deafult_head_blocks.xml
- these files update the ones in vendor\magento\theme-frontend-blank\Magento_Theme\layout\*.xml
.
My question therefore is how do I find a source of every block/container to edit or move it? Or is it better to create a new /default.xml in which I hide every element and then show it on a right place? What is the "right way" of creating layout? Should I use referenceContainer or create a new one?
Thanks for help.