Archived topic
Removing the Hyper Link in Site Library Cloud
5 replies · Started by Harvey on August 29, 2021
Dear Sir,
As shown in the attachment, I am using the Site Library Cloud. May I know how I can remove the hyper link of the author and the date.
I want to leave the author and the date there, but I do not want any hyper link when I am hovering it.
Thank you very much and I look forward to your reply.
Regards,
Harvey
Hi there,
Try this CSS:
.wp-show-posts-entry-meta a {
pointer-events: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Hi Leo,
Thanks, your CSS works. I have another question similar to what I have asked above.
Under the same site library "cloud", I would like to remove the author hyper link when I am hovering it, but I would like to keep the author as plain text (as shown in the following screenshot attachment).
Would you please let me know how I can do that?
Hi there,
i can provide some code if needed to remove the link.
But you may be interested in the Block Element - Content Template:
https://docs.generatepress.com/article/block-element-content-template/
You can visually build your own post content template - theres a few predefined layouts to start with, and then you can style each element and choose whether to add the dynamic link or not.
Hi David,
Thank you very much for your prompt reply. The tutorial link you have provided is useful, I will start learning by myself.
At the same time, would you please send me the code on how I can remove it?
Thanks again and I look forward to your reply.
Regards,
Harvey
Of course, the PHP Snippet you need is found here:
https://docs.generatepress.com/article/generate_post_author_output/#remove-link