How can the “date” hyperlink be disabled? I want to keep the date text in posts (archive and single posts), without it linking anywhere.
-
Any link would be added by your theme. To remove it you would need to create a child theme and change the template in your child theme so that there's no link. The specific files etc. depends entirely on your theme, so I suggest speaking to its author.– Jacob PeattieCommented Dec 5, 2023 at 22:10
Add a comment
|
1 Answer
You can use the Site Editor.
For the TwentyTwentyThree theme, you can find the option to disable the link with the steps below. A different template my require a different path through the template blocks or a child theme as suggested by Jacob Peattie in the Comments.
Single posts
- Navigate to the Site Editor page for the Single template
- Select the List View
- Navigate through these blocks: Group > Post Meta > Group > Columns > Column > Row > Post Date
- Select Post Date
- Using the Block Settings panel disable links using the option Link to post
Archive posts
- Navigate to the Site Editor page for the Archive template
- Select the List View
- Navigate through these blocks: Group > Query Loop > Post Template > Post Date
- Select Post Date
- Using the Block Settings panel disable links using the option Link to post