• Resolved ahmedyasseir

    (@ahmedyasseir)


    I have a problem with duplicate title tags I think the problem is with the theme because I tried all SEO plugins and when I changed the the problem was gone but I am comfortable with the Raft theme so I am looking for help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello there Ahmed,

    I myself also use Rank Math for SEO, so I had the same problem.

    Fix I used
    In wp-includes, open block-template.php and remove:

    // Render title tag with content, regardless of whether theme has title-tag support.
    remove_action( 'wp_head', '_wp_render_title_tag', 1 ); // Remove conditional title tag rendering…
    add_action( 'wp_head', '_block_template_render_title_tag', 1 ); // …and make it unconditional.

    Remember to backup your block-template.php file beforehand. Also, if you use a caching plugin, remember to clear your cache after the fix.

    Thread Starter ahmedyasseir

    (@ahmedyasseir)

    Dear Peter,

    I wanted to express my sincere gratitude for your assistance in resolving the issue with duplicate title tags on my website. Your suggestion to modify the block-template.php file by removing the conditional rendering of the title tag worked perfectly. I am thrilled to share that the problem has been resolved, and I couldn’t be happier with the outcome.

    Your willingness to help and provide a solution that worked flawlessly is greatly appreciated. Your expertise and guidance have made a significant difference in improving the SEO and overall performance of my website. I am truly grateful for your contribution.

    Wishing you all the best in your future endeavors.

    Warmest regards, [Ahmed]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Urgent Assistance Needed: Duplicate Title Tag Issue with Raft’ is closed to new replies.