How to eliminate the link of the blog post date?


#1

Now, the blog post date can be clicked. But actually nothing is linked, just go back to related post, that means clicking on the post date is the same as clicking on the post title. So there is no meaning for the link of the blog post date I think…

Can I remove this link? I want the date to be static and unclickable.


#2

The default WordPress theme does it as well. It is the common feature though. To remove it, could you please try to do the following steps?

  1. Install and activate the Header and Footer Scripts plugin
  2. Go To Settings > Header and Footer Scripts panel
  3. Paste the following code into the provided “Scripts in footer:” box

<script type="text/javascript">

;(function($) {

  'use strict'

  $('.posted-on a time').unwrap();

})(jQuery);  

</script>

  1. Save settings

Regards,
Kharis


#3

Wow! that words great! Thanks again Kharis!


#4

Is it possible to completely remove this ?
I see it under projects, Posted on <date> by <user>, can I remove this completely ?


#5

Dear Ross,

Could you please try to apply the following CSS code through the Simple Custom CSS plugin or child theme’s style.css?

.single-projects .meta-post{
  display: none;
}

Regards,
Kharis


#6

I would like to be able to remove this same element from my “posts” too, but can’t seem to find the area of .css that controls that.

If I alter your code to what’s below, and add it to my Custom CSS, it doesn’t end up working.

.single-post .meta-post{
display: none;
}

** UPDATE: Please disregard…I found another thread and found the script in “content-single.php”. I just excluded the following line and that seemed to remove it…

<!–<?php intro_posted_on(); ?>–>