This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
In Wordpress, using the "The SEO Framework" plugin, we want to break the inheritance | |
between the Meta Title and that of OpenGraph/Twitter Title (we also do this for Description but the approach is the same). | |
While the PHP code appears to work, the 'placeholder' | |
on the field INPUT and TEXTAREA elements still reflects the original behaviors. | |
This (hacky) code solves for that though a better approach is desired. | |
This would break if element IDs were to change in the future. | |
You also need to ensure you DO NOT run this code until the element exists. |
OlderNewer