Aleš Sýkora wrote

Astra Theme Container Width Fix

4. 9. 2019 in

If you encounter some issues with container width on mobile device when using Astra Theme and Toolset and Bootstrap try this CSS fixes.

Mobile container overlapping the page width

Avaible CSS fixes

by Toolset support

@media only screen and (max-width: 544px)  {
      .ast-container {
            padding-left:20px; 
            padding-right:20px; 
      }
}

by Astra support

@media (max-width: 544px){
    .ast-separate-container #content .ast-container
           .row {
               margin-left:0;
               margin-right:0;
    }
}
    

Archive stretched differently then post

Problem: Stretched, full-width archives behave differently than stretched, full-width posts.

.post-type-archive #main > .ast-row {
    margin-right: 0;
    margin-left: 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Emoji deleted from ACF field after saving
2. 4. 2021 in
So you have a ACF text field and you are trying to insert emoji to it. For example as a category icon. You add the field, add the emoji, use the PHP code to display the field. And emoji is missing. After that you found that every time you save the page, emoji dissapear from […]
Read More
Aleš Sýkora wrote
Get homepage link as a logo link in Oxygen Builder
Wrap your website’s logo in link wrapper and use this PHP function inside, to create the Home link.
Read More
Aleš Sýkora wrote
Child posts menu for custom post type parent item
1. 2. 2021 in
This code will help you display menu of childs on current post. For example: Product 1 = parent has those child pages: – Product usage– How to– Disclaimer– Calculator When you put this child items menu in your template, it will show all childs of product 1 on all child pages and also on product […]
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram