[Resolved] Element and category question

Home Forums Support [Resolved] Element and category question

Home Forums Support Element and category question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #945710
    Bjørnar

    I have been able to create an Element that only shows on the front page.

    https://bjokib.com/

    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!

    #945902
    David
    Staff
    Customer Support

    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.

    #945904
    Bjørnar

    That worked perfectly. Thanks! 🙂

    #945943
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.