Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #460187

    Recently I was directed by our art director to completely remove the link that automatically shows up in the title container’s H1.

    What’s the best way of doing this? My biggest concern is that the code should be in my child theme so it doesn’t disappear during the next Enfold update.

    Thanks for any help!

    #460356
    #482654

    I have trouble in same case.I tried to that

    https://kriesi.at/support/topic/a-real-seo-problem-blog-post-title-should-be-h1-header/#post-115984.

    filter.

    But that filter change <strong class=’main-title entry-title’> not h1, so that I can’t remove permalink from h1 even now.

    How can I remove that from h1 ?

    • This reply was modified 9 years, 4 months ago by bruetree19.
    #483413

    Hey!

    I’m sorry but I don’t understand. Are you trying to remove the link on the title? Send us a link to your page and paste the full code your using here please.

    Best regards,
    Elliott

    #483799

    That’s right.

    I am trying to remove the link on the title.
    Regards.

    [current]

    <h1 class="post-title entry-title" itemprop="headline"> <a href="http://blog.renai-therapy.com/%e3%80%90%e6%81%8b%e6%84%9b%e3%82%b3%e3%83%a9%e3%83%a0%e3%80%91%e3%81%aa%e3%81%9c%e5%bd%bc%e6%b0%8f%e3%81%af%e4%bf%a1%e3%81%98%e3%82%89%e3%82%8c%e3%81%aa%e3%81%84%e3%81%ae%e3%81%8b%ef%bc%9f/" rel="bookmark" title="Permanent Link: 彼氏を信じたいけど信じられない、その本当の理由とは?">彼氏を信じたいけど信じられない、その本当の理由とは? <span class="post-format-icon minor-meta"></span> </a></h1>

    [ideal]

    <h1 class="post-title entry-title" itemprop="headline">彼氏を信じたいけど信じられない、その本当の理由とは? <span class="post-format-icon minor-meta"></span></h1>

    [link]
    http://blog.renai-therapy.com/【恋愛コラム】なぜ彼氏は信じられないのか?/

    [using code]

    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
    if ( is_single() )
    {
    $args['title'] = get_the_title($id);
    $args['link'] = false;
    }
    
    return $args;
    }
    
    • This reply was modified 9 years, 4 months ago by bruetree19.
    #484024

    Hey!

    Send us a WordPress login and we’ll take a closer look.

    Regards,
    Elliott

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.