Skip to content

Duplicate title tag issue#24

Open
mkuniej wants to merge 1 commit into
masterfrom
fix/duplicate_title
Open

Duplicate title tag issue#24
mkuniej wants to merge 1 commit into
masterfrom
fix/duplicate_title

Conversation

@mkuniej

@mkuniej mkuniej commented Feb 12, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • Bug Fixes
    • Fixed duplicate title tag rendering when using Rank Math or Yoast SEO plugins, preventing SEO conflicts and ensuring clean HTML output.

@mkuniej mkuniej requested a review from bartnovak February 12, 2026 15:31
@coderabbitai

coderabbitai Bot commented Feb 12, 2026

Copy link
Copy Markdown

Walkthrough

Added a juniper_fix_rankmath_duplicate_title() function to the Juniper theme that removes duplicate title tag rendering when Rank Math or Yoast SEO constants are detected. The function is hooked to the wp_head action at priority 0.

Changes

Cohort / File(s) Summary
SEO Plugin Duplicate Title Fix
web/app/themes/juniper-theme/functions.php
Added global function to prevent duplicate title tag output when Rank Math or Yoast SEO plugins are active, with corresponding WordPress action hook registration.
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Duplicate title tag issue' directly references the main change: fixing duplicate title tag rendering by detecting SEO plugins and preventing duplicate outputs.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/duplicate_title

No actionable comments were generated in the recent review. 🎉


Comment @coderabbitai help to get the list of available commands and usage tips.

@mkuniej mkuniej self-assigned this Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant