• Resolved keepact

    (@keepact)


    I finished my site with Astra and Gutenberg and everything was perfect. The problem I encountered was on the BLOG page. If I select in the “Astra Settings” as “No sidebar”, when I see the Preview the page that show is my Front Page. If I put any other combination “Full width + No sidebar” or “Content in the Box + No sidebar”, I am always redirected to the home page with the sidebar on the right side. I just see my BLOG page if I put “Left Sidebar”.

    I have CSS knowledge and I’m going to style the page but I need to remove the sidebar first. I get only using “display: none” but the content still goes to my HTML.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @keepact ,

    That’s weird! Can you please create a support ticket so that we can have a better look at your issue.

    Regards,
    Deepak

    Thread Starter keepact

    (@keepact)

    I just did it, thank you!

    Thread Starter keepact

    (@keepact)

    Another thing.

    I used WP_query to show some posts and I noticed that each post block is with the classes of the Ultimate Addons for Gutenberg plugin. I already used it before but I chose to use only gutenberg to learn better about it. I deactivated and deleted the plugin months ago but apparently there are still leftovers from it in the core. How do I remove and return to the default? I send another ticket?

    UPDATE: i found some posts made by the plugin that i not deleted e thats why is showing, sorry! Anyway, i will wait for the support ticket solution for the other question! thanks.

    • This reply was modified 5 years, 9 months ago by keepact.
    • This reply was modified 5 years, 9 months ago by keepact.
    Thread Starter keepact

    (@keepact)

    Updates … I created a ticket for this problem but for now I was able to solve it as follows:

    1 – I created a new template and called it from home.php. on my child theme.

    2 – I used Wp_query to call author, excerpt, post image and etc.

    3 – I put in the customizer field as “No-sidebar” and this time it worked (the sidebar left the html), however, I can still see in the main class of the body the childs classes “ast-right-sidebar” and “ast- separete-container “.

    I changed the styles of these classes and everything worked normally and integrated. I do not know if this is the correct way but I did it. In the open ticket response I was informed that I would have to create a staging site but I’m developing on localhost. Anyway, thanks for the help and i hope to confirm if there is another method beyond that to achieve this.

    PS: I noticed that when I click on “Preview” opens the front page, however, when I click again opens another tab with the blog page, strange … Since I have no plugins I do not know where this comes from.

    Thread Starter keepact

    (@keepact)

    New discovery:

    The bug persists but I figured out why it worked: I deleted <div id = “primary”> and used only the “content-primary” class.

    Apparently the body classes only work with this id and I managed to get the solution in this strange way.

    Thread Starter keepact

    (@keepact)

    I was able to remove the class “ast-right-sidebar” and add the ones I wanted. The ones i could not getting take out using body_class () funcition are “ast-separate-container” and “ast-two-container”. I do not know why this happens only with these classes. Do you guys have any filters? Thank you!

    Thread Starter keepact

    (@keepact)

    Everything ok now!

    I realized that there is a function to choose the sidebar side or it is disabled in the customizer. I was trying to change the blog page and I believe that the configuration of the customizer has greater specificity.

    Regarding the classes, I found a theme filter that only adds the ones I want (astra_body_classes) and removed the unwanted classes.

    I also noticed that the ast-separate-container and as-two-container classes are part of the core that links the Blog page and with few changes I was able to customize the template and integrate with the wordpress blog and posts. Now I understand theme better and I can use all the functions (filters) when necessary.

    Thanks for the attention of the support for the ticket I opened, by the way, it was very fast!

    Hi @keepact ,

    Glad that you find our support fast.

    We appreciate that you figured a few things by yourself. ??

    Regards,
    Deepak

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Sidebar Settings Not Working’ is closed to new replies.