Hide sidebar on page, blog and post

Hi,
I’m using Illdy on 3 different sites.
In two of theme I did hide sidebar on post and categories.
In one I can’t.
I tried to copy/paste the same code in the custom css but the sidebar remains on those articles and categories.
It seems something wrong on the “col-7” - “col-8” - “col-4” even because in one (not wrong) case the col-7 replaces col-8
Thank you for your support

Hi, I just managed to remove the sidebar in posts with this code in the custom css:

/Remove skill bars/
.skill {
display: none;
}

…but I’m still looking for Categories

Hey there,

May I have a closer look? Please provide the URL of the page and specify exactly what you want to remove. I will take care of it.

Regards,

Hi, thank you for response.
The category url is: https://www.consequenze.org/articolieditoriali/
Looking forward

Hey there,

Please add this CSS code in the Appearance > Customize > Additional CSS:

.archive #sidebar {
    display: none;
}

Let me know results,

Regards,

Hi there,
thank you but unfortunately it still does not work.
Could it depend on something related to the function.php of the child theme?

Hi,
I have just found the solution.
I added on function.php of my child theme this

if( !is_category() ){
get_sidebar();
}

But now it changed the menu size and the sidebar came back on single post :cry:

Hey there,

CSS code should work, can you please add it in the CSS box and share the screenshot of how its added? are you sure you don’t have any typo issues?

Regards,

Hi there,
thanks for your kind support.
Maybe you’re right. I can’t rule out the possibility of some conflict.

Hey there,

Sure, can you please copy and paste the code here? Alternatively, you can also ask chatGPT to verify the syntax of the code. :slight_smile:

I can’t wait to hear back from you!

Regards,

Hi there,
I asked chatGPT and it suggested few things but nothing important.
Anyway, even with new code the sidebr is on.
This is the code by chatGPT (now customized):
/* Remove skill bars */
.skill {
display: none;
}

/* Header styles */
#header .top-header {
background-color: #ffffff;
}

.bottom-header.blog {
display: none;
}

#header .top-header .header-navigation ul li a {
color: #00a4c1;
font-family: “Poppins”, sans-serif;
}

.open-responsive-menu .fa {
color: #000;
}

h5,
.h5 {
font-size: 14px;
}

/* Body styles */
body {
color: #404040;
}

body.home.page section.content-area,
body.page .post-inner-content {
padding: 0;
}

#about,
#static-page-content {
padding: 20px 0 0px 0;
}

#latest-news,
#static-page-content {
padding: 9px 0 0px 0;
}

/* Blog post styles */
.blog-post .blog-post-meta .post-meta-author,
.header-button-one,
.header-button-two,
.blog-post-meta,
.blog-post-author {
display: none !important;
}

/* Header styles */
header#header {
height: 100px;
padding: 1px 0;
}

/* Responsive styles */
@media only screen and (max-width: 480px) {
#header {
background-attachment: initial !important;
background-position: center;
background-size: cover;
}
}

@media (min-width: 768px) {
.col-sm-4 {
display: none;
}

.single .col-sm-7 {
    width: 100% !important;
}

#blog .blog-post .blog-post-image img {
    width: 45%;
    max-width: 45%;
    height: auto;
}

.archive #sidebar,
#sidebar {
    display: none;
}

}

/* Custom link color */
.markup-format a {
color: blue;
}

Thank you for your kind support

Hey there

Can you please provide your admin details in DM? I will check it and I will fix it for you.

Regards,

Hi there,
the usernam: colorlib
Password: colorlib_support

https://www.consequenze.org/wp-login.php?action=rp&key=eNPC69PcnAJfjREfKjFo&login=Colorlib

Thank you again

Hi there,

Ok, please check, the sidebar is removed:

let me know the results.

Thank you so much!
It continues to appear in posts but it’s already a big step forward and the most is done!

Hi there,

On which post? can you show me it? :slight_smile:

Regards,

Hi,
every post for example this: Lo sciamano virtuale
Thank you!

Hi there,

The CSS code I provided above will only work for the archive as you requested to hide sidebars from the archive page.
I need to know where you want to remove the sidebars, from posts? pages? archives? or from everywhere?

Looking forward to your reply.

Regards,

I there,
I apologize for not specifying the purpose well.
I asked how to hide sidebar on post and categories but maybe my English sometimes slows down. I’m really sorry for that.
Thanks for your time and for your kind support.
Best regards