Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1149787

    Dear support,
    we have to absolutely remove “permanent link” title from single post h1 link.
    Thi is a request of our SEO departement.
    How can we do it?
    Thanks

    #1150082

    Any update please?

    #1150227

    Hi sitebysite,

    Could you please give us a link to your website, we need more context to be able to help you.

    Which pages are you referring to?

    Best regards,
    Victoria

    #1150419

    Hi Victoria,
    all single post for example this link https://www.sitebysite.it/news/site-by-site-al-timone-della-nuova-strategia-digital-di-tessilmare/.
    Inspecting page you can see in h1 “post-title entry-title” (SITE BY SITE AL TIMONE DELLA NUOVA STRATEGIA DIGITAL DI TESSILMARE) the “a link tag” has the title “Link Permanente: SITE BY SITE AL TIMONE DELLA NUOVA STRATEGIA DIGITAL DI TESSILMARE”.
    We need to remove “Link Permanente” (Permanente Link in italian language) that is generated in php template because it’s very bad for SEO purpose.

    How we can do it, better with a functions?

    Thanks

    #1151127

    Can you give me any suggestion please?
    Thanks

    #1151436

    Hi,
    Sorry for the late reply, please try this solution, please note there are a couple of functions in the thread, some for pages and others for posts.

    Best regards,
    Mike

    #1151774

    It does not work.

    #1152015

    Hi,

    Thank you for the update.

    You may need to override the default avia_default_title_filter function, and remove the markup directly from within it. Please add this snippet in the functions.php file.

    	function avia_default_title_filter($current_post)
    	{
    		if(!empty($current_post['title']))
    		{
    			$default_heading = is_singular() ? 'h1' : 'h2';
    			$args = array(
    						'heading'		=> $default_heading,
    						'extra_class'	=> ''
    					);
    
    			/**
    			 * @since 4.5.5
    			 * @return array
    			 */
    			$args = apply_filters( 'avf_customize_heading_settings', $args, 'avia_default_title_filter', array( $current_post ) );
    
    			$heading = ! empty( $args['heading'] ) ? $args['heading'] : $default_heading;
    			$css = ! empty( $args['extra_class'] ) ? $args['extra_class'] : '';
    
    			$output  = "";
    			//$output .= "<{$heading} class='post-title entry-title ". avia_offset_class('meta', false). "'>";
    			$output .= "<{$heading} class='post-title entry-title {$css}' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false)).">";
    			$output .= "	<a href='".get_permalink()."' rel='bookmark'>".$current_post['title'];
    			$output .= "			<span class='post-format-icon minor-meta'></span>";
    			$output .= "	</a>";
    			$output .= "</{$heading}>";
    
    			$current_post['title'] = $output;
    		}
    
    		return $current_post;
    	}
    

    Best regards,
    Ismael

    #1152092

    Wonderful, it works!
    Thanks so much

    #1152198

    Hi,
    Thanks @Ismael for the update, and glad @Ismael was able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Remove completely "Permanent link" titlle’ is closed to new replies.