WordPress Image Control: Difference between revisions
mNo edit summary |
m →Plugins |
||
Line 54: | Line 54: | ||
***Some Alternatives to explore: https://colorlib.com/wp/wordpress-media-library-management-plugins/ | ***Some Alternatives to explore: https://colorlib.com/wp/wordpress-media-library-management-plugins/ | ||
**Plugin that will create a default ALT description if there isn't one??? | **Plugin that will create a default ALT description if there isn't one??? | ||
**Plugin that will redirect Permalink for Image to a Lightbox based on Category | **Plugin that will redirect Permalink for Image to a Lightbox based on Category | ||
*** | |||
***For most websites, a combination of the below two plugins properly configured will allow Image Permalinks to redirect to another page | |||
****To redirect all Image Permalinks to the Homepage; | |||
*****'''Attachment Pages Redirect:''' A simple Plugin that redirects Attachment Pages (like Media and Images) to a Parent Pages (created with Media Library Assistant) and under other circumstances, like 404 (page doesn't exist), etc. | |||
****To redirect Image Permalinks to a Parent Page; | |||
*****'''Media Library Assistant''': Provides the ability to create a Parent Element for Media and Images | |||
****To redirect Image Permalinks to specific Pages; | |||
*****'''Redirect''' (under Tools, Redirection); This Plugin provides the ability to create a list of of redirects. | |||
***For Plugins like Timeline Express that have delayed rendering which affect Fragment Location / Anchor scrolling, additional steps have to be taken. | |||
****To redirect Image Permalinks to specific Pages; | |||
*****'''Redirect''' (under Tools, Redirection); This Plugin provides the ability to create a list of of redirects. | |||
****...and then insert the below code into a Footer (using '''Header Footer Code Manager''') where the Timeline is configured; | |||
****<syntaxhighlight lang="text"> | |||
<script> | |||
document.addEventListener('readystatechange', event => | |||
{ | |||
if (event.target.readyState === "interactive") | |||
{ | |||
setTimeout(DelayedFunction, 1000) | |||
} | |||
} | |||
); | |||
function DelayedFunction() | |||
{ | |||
var location_hash = window.location.hash; | |||
var location_minus_hash = location_hash.substr(1,); | |||
var element = document.getElementById(location_minus_hash); | |||
element.scrollIntoView(); | |||
} | |||
</script> | |||
</syntaxhighlight> | |||
***Ideally the landing page for an image obtained from a search engine should have a page that says, "Here is the image by itself. And here is the link to the actual location on another page" | ***Ideally the landing page for an image obtained from a search engine should have a page that says, "Here is the image by itself. And here is the link to the actual location on another page" | ||
****OR | ****OR | ||
Line 73: | Line 107: | ||
**** | **** | ||
**Plugin that creates a Title for an Image (Media Assistant???)??? | **Plugin that creates a Title for an Image (Media Assistant???)??? | ||
**Plugin for custom Image CSS | **Plugin for custom Image CSS | ||
***'''Simple CSS''' (Under Appearance, Pages, Posts, Images, etc.): This adds a custom CSS Field to Images (does not work with Permalink URI) | ***'''Simple CSS''' (Under Appearance, Pages, Posts, Images, etc.): This adds a custom CSS Field to Images (does not work with Permalink URI) | ||
***Simple Custom CSS is too simple (it's just a single field for the entire website) | ***<s>Simple Custom CSS is too simple (it's just a single field for the entire website)</s> | ||
***Custom CSS Pro is great for previewing what it will do to a website, but appears to apply site wide to everything. | ***<s>Custom CSS Pro is great for previewing what it will do to a website, but appears to apply site wide to everything.</s> | ||
**Plugin for Image Contents or Index Page??? | **Plugin for Image Contents or Index Page??? | ||
***This one does everything on a site, not just images: https://barn2.co.uk/wordpress-index-plugin/ | ***This one does everything on a site, not just images: https://barn2.co.uk/wordpress-index-plugin/ |