Hi, I noticed that the post title is a link to the post even when inside the post itself. Can you tell me how to fix this so that the title won’t link anywhere when inside the post itself?
You can see what I mean here – http://www.photobek.com/abandoned-house-fields/ – just hover over the title and you will see it is a link to the post.
Thanks.
Hey!
Add this code to the functions.php:
function avia_default_title_filter($current_post)
{
if(!empty($current_post['title']))
{
$heading = is_singular() ? "h1" : "h2";
$output = "";
$output .= "<{$heading} class='post-title entry-title' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false)).">";
$output .= is_singular() ? "" : " <a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".$current_post['title']."'>";
$output .= $current_post['title'];
$output .= " <span class='post-format-icon minor-meta'></span>";
$output .= is_singular() ? "": " </a>";
$output .= "</{$heading}>";
$current_post['title'] = $output;
}
return $current_post;
}
Best regards,
Josue