Removing the title links in post lists

The Customizr theme displays by default your post titles as links pointing to the single post.

Here’s a simple way (using some javascript) to remove those links if you ever need to.

Paste the following code in your functions.php :

add_action('wp_head' , 'remove_post_list_title_links');
function remove_post_list_title_links() {
	<script id="remove-links-in-title" type="text/javascript">
		jQuery(document).ready(function($) {
			$('.entry-title').each(function() {
				var $title_link = $('a[rel="bookmark"]' , $(this)),
					$title_text = $title_link.text();

More about customizing the Customizr theme here.

More about using jQuery in WordPress.

9 thoughts on “Removing the title links in post lists”

Comments are closed.