-
AuthorPosts
-
February 4, 2014 at 9:42 pm #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.
RegardsFebruary 5, 2014 at 5:11 am #219770Hey 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,
YigitFebruary 5, 2014 at 10:58 am #219877Great!
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
February 6, 2014 at 4:31 am #220266Hey!
Copy the whole modified avia_title function (259-321) to your child functions.php
Cheers!
JosueFebruary 6, 2014 at 2:42 pm #220454Thanks, 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
February 6, 2014 at 8:06 pm #220646Hi!
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!
JosueFebruary 6, 2014 at 8:28 pm #220651PERFECTO!!!
Thanks a lot Josue!
-
AuthorPosts
- The topic ‘Remove from’ is closed to new replies.