Archived topic
Element and category question
3 replies · Started by Bjørnar on July 1, 2019
I have been able to create an Element that only shows on the front page.
Which Is what I want. However I would like to have the same styling as the posts when scrolling down the page. Or at least the text padding.
When I go to categories, such as this: https://bjokib.com/category/high-energy-music/
The padding is a bit off as well.
Any idea how to fix that? :)
Cheers!
Hi there,
so to have the same styling and padding as the articles on the page, you would need to add a wrap around the content you have added to your hook:
<div class="inside-article">
Your HTML in here
</div>
The inside-article class is a GP class and will automatically style it like the other rest of the page.
That worked perfectly. Thanks! :)
Glad to be of help