-
AuthorPosts
-
October 21, 2019 at 10:46 am #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?
ThanksOctober 22, 2019 at 9:13 am #1150082Any update please?
October 22, 2019 at 5:32 pm #1150227Hi 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,
VictoriaOctober 23, 2019 at 9:39 am #1150419Hi 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
October 25, 2019 at 9:54 am #1151127Can you give me any suggestion please?
ThanksOctober 27, 2019 at 1:28 am #1151436Hi,
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,
MikeOctober 28, 2019 at 3:09 pm #1151774It does not work.
October 29, 2019 at 11:13 am #1152015Hi,
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,
IsmaelOctober 29, 2019 at 4:16 pm #1152092Wonderful, it works!
Thanks so muchOctober 30, 2019 at 12:21 am #1152198Hi,
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 -
AuthorPosts
- The topic ‘Remove completely "Permanent link" titlle’ is closed to new replies.