Remove link in post-title

  • Posted in : Read WP
  • uruegg
    Participant

    Hello.
    I would like to remove the link in a post-title. Which file do I need to edit in this case?
    Thanks for the help.
    Cheers

    Mehmet S.
    Keymaster

    Hi, use this in your External JS field:

    <script>
    jQuery(document).ready(function($)
    {
    	$( '.entry-title' ).each(function()
    	{
    		var postTitle = $( this ).find( 'a' ).html();
    		$( this ).html( postTitle );
    	});
    });
    </script>
    
    uruegg
    Participant

    thanks, works perfectly.
    solved.

    Mehmet S.
    Keymaster

    You are welcome.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register