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
I just did it, thank you!
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 6 years, 11 months ago by
keepact.
-
This reply was modified 6 years, 11 months ago by
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.
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.
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!
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