Difference between revisions of "SEO Basics"

801 bytes added ,  18:15, 13 February 2020
m
Line 40: Line 40:
Admin Columns showed promise for making columns wider, but didn't work and messed other stuff up.  
Admin Columns showed promise for making columns wider, but didn't work and messed other stuff up.  


=== Images ===
===Images===
The URL of the image is of course available, but cannot be changed within WordPress.   
The URL of the image is of course available, but cannot be changed within WordPress.   
Wordpress generates multiple versions of an image in the name of "responsive" (IE for multiple smaller screens), supposedly three by default.  Themes can also create additional image sizes, along with other plugins.  These images are offered to browsers in with the srcset value in an Image Tag.  The Phoenix Media renaming tool renames all of the various image files (https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/). 


The Title Tag does NOT show up anywhere in a Page or Post, nor do they appear in raw HTML.  The Title Field Tag is used in a Sitemap File and is marked as [[wikipedia:CDATA|CDATA]] to ensure that if any special characters are used they are interpreted literally and not as markup.  
The Title Tag does NOT show up anywhere in a Page or Post, nor do they appear in raw HTML.  The Title Field Tag is used in a Sitemap File and is marked as [[wikipedia:CDATA|CDATA]] to ensure that if any special characters are used they are interpreted literally and not as markup.  
Line 51: Line 53:
The Description Tag does NOT show up anywhere in a Page or Post, nor do they appear in raw HTML.
The Description Tag does NOT show up anywhere in a Page or Post, nor do they appear in raw HTML.


Open Graph / OG, shows up in HTML as <meta property="og:image" content="https://NameOfFile&amp;amp;amp;amp;amp;lt;nowiki/&amp;amp;amp;amp;amp;gt;.jpg"/>  According to current information, Facebook uses it.  Google
Open Graph / OG, shows up in HTML as <meta property="og:image" content="https://NameOfFile&amp;amp;amp;amp;amp;amp;lt;nowiki/&amp;amp;amp;amp;amp;amp;gt;.jpg"/>  According to current information, Facebook uses it.  Google


Default ALT Description to compensate for blank alt tags
Default ALT Description to compensate for blank alt tags
Line 69: Line 71:
Media Library Assistant can Bulk update ALT fields for images (note WP Media folder has to be deactivated for it to work)
Media Library Assistant can Bulk update ALT fields for images (note WP Media folder has to be deactivated for it to work)


=== Image CleanUp ===
No plugins worked better than an old fashion file search using a regular expression in Directory Opus to find all of the automatically generated images (thumbnails): .*x[0-9][0-9][0-9] (then moved them to another folder instead of deleting them)


A Useful CLI option: WP-CLI (need to download and install it, Google it)


Adding the below code to a theme's functions.php file will take existing information and create Figure and FigCaption elements<syntaxhighlight lang="text">
Adding the below code to a theme's functions.php file will take existing information and create Figure and FigCaption elements<syntaxhighlight lang="text">