This topic has 4 replies, 2 voices, and was last updated 2 years, 1 months ago ago by Rose Tyler
Hi
how we can hide products block in my account page in logout https://prnt.sc/xy50FtMJnZ8g
Hello,
Add a custom class for row, for example:
disable-for-non-logged-in
https://prnt.sc/TtV5ygwXJfk1
then add the next code in custom CSS for the page
.disable-for-non-logged-in {
display: none !important;
}
Regards
Hi
we add class name disable-for-non-logged-in in products block https://prnt.sc/fSRDLth8IZTq then add this code in my account page setting
https://prnt.sc/AjviFPppmeOy the result products block is hidden for login and out user , pls check
Hello,
You are right, please change the code to –
body:not(.logged-in) .disable-for-non-logged-in {
display: none !important;
}
Regards
Tagged: block, hide, logout, persuasive, templates, woocommerce, wordpress
The issue related to '‘hide block in logout’' has been successfully resolved, and the topic is now closed for further responses