Hello, I’ve recently started using Grav. I haven’t built webpages for ages, it’s just a hobby I’m getting into again at the moment.
Now to my problem: I’ve built a modular home page with the antimatter theme. If you look at the demo the second part (Highlights) has 4 elements with icons. I’m sure I saw those in another theme (can’t remember which one) and they had links in them. In antimatter this doesn’t work. Any chance to edit the theme to integrate links? I want to integrate internal links to other parts of the website.
First you have to choose if you are going to copy Antimatter as a new theme and edit it, or if your going to extend Antimatter and use it as a parent theme. This is explained in the Theme docs, so I suggest reading over that.
Next, the logic for the modular pages is a combination of the page frontmatter (headers) and the Twig that provides the output logic.
You first would add a link in the modular headers:
If you want to be able to add a link via the admin, you will need to modify the blueprints/modular/features.yaml file and add a text field for this new link element.
Now another small problem: I noticed this on somebody’s website yesterday as well and now it haunts me. The features have a padding problem – but only 2 of them.
First screenshot: This is the last feature section where I just integrated the links. As you can see, the last 2 elements are not aligned anymore. This also happens when the browser is wider, but only with a specific width-range. Other widths are fine.