Shilpa
Published in : 2022-02-26
On my homepage of the WordPress website, a number of posts are listed already, but I don't want to let the user browse posts from the list.
How can I hide or disable or not let the user browse such blog posts?
Join our community and get the chance to solve your code issues & share your opinion with us
Sign up Now
Shilpa Date : 2022-02-26
Best answers
10
Best answers
10
I was looking for the solution and I found a workaround. (I am curious to share what I did!)
While inspecting the HTML elements, I saw linkclass which was added in all of the posts by default. You can add below code snippet for that.
Using this, visitors can't browse or navigate to see more posts.
Rakshit Date : 2022-02-27
Best answers
34
Best answers
34
You can achieve it by the below code,
You can check the live demo on fiddle.