Hi,
quick question (with hopefully a quick solution).
I want to disable the standard “displayed everywhere” sidebar for some products, not all of them. I have some products that are only available to existing clients and some have to be open for everyone. For those who can be bought by anyone I want to disable the sidebar but maintain the sidebar for all further products.
One of the reasons is that the sidebar is not being shown correctly when logged out (for whatever reason…) which appears unprofessionally.
So far I have disabled sidebar everywhere and tried to enable it via custom fields (there is an option called sidebar), but not anything I’ve come up with worked. I tried parameters like yes, no, disable, enable, or just wrote the name of the certain sidebar I wanted to choose.
Any solution? :(
Thanks in advance,
Patrick
Hi,
Can you post the link to the Products in question? and a mockup of what do you want to achieve?
Regards,
Josue
Hi,
The products for the membership plans are not to be seen publicly, the normal ones are in the private content area. All I want is to disable the sidebar completely for only these products but not for any other.
Cheers,
Patrick
Hi,
You could use CSS to hide them, try these codes in Quick CSS:
.postid-400 .sidebar,
.postid-660 .sidebar,
.postid-1164 .sidebar,
.postid-1087 .sidebar {
display: none !important;
}
.postid-400 .content,
.postid-660 .content,
.postid-1164 .content,
.postid-1087 .content{
border: 0;
width: 100% !important;
}
Best regards,
Josue
though it looks logical and seems right – it doesn’t work :(
Hi,
I’m not seeing the code neither in Quick CSS nor child style.css
Best regards,
Josue
Of course, I deleted it once I saw it didn’t work.
You could try it yourself, yet I don’t think there’ll be much difference.
Hi,
Can you please create me a WordPress administrator account? post it here as a private reply.
Regards,
Josue
Strangely for some reason I can’t see the private data anymore of the account details, but of course here again the account for you:
Hi,
Ask your host to clear the mode_pagespeed
cache so the changes reflect.
Best regards,
Josue
Works fine now, thank you very very much :)
You are welcome, glad to help :)
Regards,
Josue