How to use the frontage template

Created on 3 February 2019, almost 6 years ago
Updated 1 June 2023, over 1 year ago

I cant seem to figure out how to implement the frontpage template used in https://demo.commercekickstart.com/. I have activated the twig_debug feature in services.yml in order to find the correct name for twig template found in /templates/commerce/commerce-demo-frontpage.html.twig without success. Looking at the code, this template should replace the code in the frontpage since the first div.container instance, since otherwise the width of the block is reduced and not shown as in the demo page. However, no twig tag is shown at this point in the html, only a bit afterwards inside a div.container-fluid.

I suspect this theme was made for an older version of drupal 8 and the template doesn't work properly on this one but it's my first time theming in drupal 8 so I have no idea how this works.

The only way I managed to implemented was to use region--content.html.twig but of course this affected other pages as well as it didnt fill the whole width of the browser (div.container is limited to 1170px on the template), where the demo page fills the whole width.

Another issue is that no featured product seem to appear, do I have to touch anything at all in that regard? I expected products within the category "Featured" would naturally shown up when I inspected the commerce-demo/frontpage.html.twig template.

Im using Drupal core 8.6.7 and I created a Belgrade subtheme but the same issue happens when I use the Belgrade theme directly.

For now I will modify the template to include the header and menu code as well to use the page--front.html.twig template name but the problem of the featured content will remain. Any help on pointing me to the right direction is highly appreciated. Thanks for such a nice theme!

💬 Support request
Status

Closed: works as designed

Component

Documentation

Created by

🇪🇸Spain TanaHdez

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024