Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #219658

    Please. What is the best way to do this without actually modify the parent theme.
    Now using child theme with only custom style.css.
    Want to remove <a href> from <div class="container"><h1 class="main-title entry-title">Title without Link</h1>...
    This is not good practice in terms of SEO to make the H1 of the page as link to a page.
    Regards

    #219770

    Hey vadi4ek!

    Please go to wp-content\themes\enfold folder and open functions-enfold.php file and find

    'link'			=> get_permalink($id),

    and comment it out using // as following

    //'link'			=> get_permalink($id),

    Best regards,
    Yigit

    #219877

    Great!
    Is it possible to implement it with child theme?

    And the same with this: <h1 class="post-title entry-title" itemprop="headline">

    BTW: There is NO place at the article, says it should be a LINK on the H1 title inside the post/page.

    Regards

    • This reply was modified 10 years, 10 months ago by vadi4ek. Reason: added BTW
    #220266

    Hey!

    Copy the whole modified avia_title function (259-321) to your child functions.php

    Cheers!
    Josue

    #220454

    Thanks, works perfect!
    Just please tell me where to find the same function to the blog-post title <h1 class="post-title entry-title" itemprop="headline">

    Cheers

    #220646

    Hi!

    Add this to your child functions.php too:

    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)).">";
    		
    		if(is_singular()){	
    			$output .= $current_post['title'];
    			$output .= "			<span class='post-format-icon minor-meta'></span>";
    		}else{
    			$output .= "	<a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".$current_post['title']."'>".$current_post['title'];
    			$output .= "			<span class='post-format-icon minor-meta'></span>";
    			$output .= "	</a>";
    		}
    		$output .= "</{$heading}>";
    
    		$current_post['title'] = $output;
    	}
    
    	return $current_post;
    }

    Cheers!
    Josue

    #220651

    PERFECTO!!!

    Thanks a lot Josue!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Remove from’ is closed to new replies.