Problem with Yoast SEO
-
I have been investigating a problem on a website using Yoast SEO combined with your plugin. Somehow the data-width and data-height attributes that your plugin adds to the page markup to make it all work get removed by Yoast SEO. I am not sure if the problem is with Yoast SEO or with your plugin.
Changing the priority of the template_redirect hook in your plugin code has now worked as a quick fix for me. In lightbox-photoswipe.php line 75 I changed the following:
add_action('template_redirect', array($this, 'outputFilter'), PHP_INT_MAX);
to:
add_action('template_redirect', array($this, 'outputFilter'), 0);
I will be sending an email to Yoast SEO support asking them to have a look into this also.
Is there a specific reason to use PHP_INT_MAX to keep the priority of this hook as low as possible?
Any help on this issue apreceated. I don’t yet fully understand what is going on as I have the same set of plugins working on another website without any problems.
Kind regards, Joris van Montfort
The page I need help with: [log in to see the link]
- The topic ‘Problem with Yoast SEO’ is closed to new replies.