HTML Code Error in Title Attribute Output
-
Testing your SEO plugin and the output has a major HTML error in the title= output.
Where the title is added between img and src in the code, it lacks a space. The output is
img title = "phrase here"srcshould be
img title = "phrase here" srcThere’s a space missing. Also don’t like the spaces around the = signs 🙂
Also you are adding the filename as the alt text, this may or may not have SEO value, depends on the filename.
If we have a file with name randomfhfggfjjfhg.jpg we do not want alt text “randomfhfggfjjfhg”. It’s why other similar plugins use the post title.
Also found errors on the settings page. Where you’ve disabled features (by breaking the code) that are in the Pro version it results in PHP errors. Test your plugin with this in your wp-config.php file to see the issue:
define('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', true);David Law
The topic ‘HTML Code Error in Title Attribute Output’ is closed to new replies.