Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkbox to disable Largo's SEO-related output #1437

Open
rclations opened this issue Jun 1, 2017 · 12 comments
Open

Add checkbox to disable Largo's SEO-related output #1437

rclations opened this issue Jun 1, 2017 · 12 comments
Labels
category: feature add New/added features category: plugin compat Issues relating to plugin compatibility Estimate: < 4 Hours priority: normal Must be completed before release of this version of plugin. type: feature request type: tech debt For necessary updates because code is old
Projects

Comments

@rclations
Copy link

Get the theme out of the way to other plugins can take over SEO functionality

@rclations rclations added this to the 0.6 - Performance & SEO milestone Jun 1, 2017
@rclations rclations added the Epic Legacy label from Zenhub. label Jun 1, 2017
@ckubs
Copy link

ckubs commented Sep 9, 2017

Trying to post something similar saw that is already here. I want to use a seo plugin with Largo but apparently in the <title> meta tag, my site title appears twice. Outputted by the plugin and by the theme. Is it something I can override to fix this?

@benlk
Copy link
Collaborator

benlk commented Sep 10, 2017

@cartonic What you describe is this issue: #1470

The temporary fix for this is copying Largo's header.php into your child theme and removing the <title> ... </title> section: https://github.com/INN/umbrella-rivard-report/pull/14/files

@ckubs
Copy link

ckubs commented Sep 10, 2017

benlk Thank you for the help. I'll do that for now.

@benlk
Copy link
Collaborator

benlk commented Sep 15, 2017

Would we want to remove the SEO functionality in inc/open-graph.php entirely, or continue to include it by default but have a checkbox/toggle that lets people disable it if they don't want it?

@ckubs
Copy link

ckubs commented Sep 15, 2017 via email

@aschweigert
Copy link

I would still argue that having a sane set of defaults that don't necessarily rely on a plugin is a good idea, particularly for very small sites. The option to modify the defaults, filter the output of various functions, etc. would definitely be preferred though to avoid potential collisions like the one described here.

@ckubs
Copy link

ckubs commented Sep 15, 2017 via email

@rclations
Copy link
Author

a good start would be to detect Yoast and automatically hide those settings if it's activated.

@benlk benlk added type: improvement priority: normal Must be completed before release of this version of plugin. type: tech debt For necessary updates because code is old labels Jun 13, 2018
@benlk
Copy link
Collaborator

benlk commented Jun 13, 2018

Full fix in Largo:

  • checkbox, disabled by default, to suppress Largo's own open graph tags output
  • if Yoast is active, a notice in that settings area that recommends checking it to disable Largo's own meta graph stuff.
  • if checkbox is not checked, do the add_action.
  • maybe some sort of output-buffering option to make the thing filterable? This would add a lot of complexity that would probably be more easily handled by the pluggability of the largo_opengraph function.

A quick fix for this issue in child themes is to define the function largo_opengraph() and have it output nothing, thereby replacing Largo's own largo_opengraph output with no output.

@benlk
Copy link
Collaborator

benlk commented Dec 7, 2018

#1589 removes Largo's largo_opengraph if Yoast is active, but that kicks the can down the line a while.

@benlk
Copy link
Collaborator

benlk commented Jan 7, 2019

The "if yoast is active" check should just be a option in the theme options:

Disable Largo's built-in Twitter Card and Open Graph tags? If you're using an SEO plugin such as Yoast, you may need to check this box.

@benlk benlk changed the title Remove SEO Functionality Add checkbox to disable Largo's SEO-related output Aug 22, 2019
@benlk benlk added category: feature add New/added features and removed Epic Legacy label from Zenhub. labels Aug 22, 2019
@benlk
Copy link
Collaborator

benlk commented Aug 22, 2019

@benlk benlk added this to To do in Largo 0.7 via automation Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: feature add New/added features category: plugin compat Issues relating to plugin compatibility Estimate: < 4 Hours priority: normal Must be completed before release of this version of plugin. type: feature request type: tech debt For necessary updates because code is old
Projects
Largo 0.7
  
To do
Development

No branches or pull requests

4 participants