Jsitemap, een grandioze aanvulling voor Joomla hebben we laatst aangeschaft. Al snel kwamen we er achter dat de images uit de gallery niet werken toegevoegd aan de imagesitemap. Hier is een hack om jouw images allemaal aan Google te kunnen toevoegen! (geschreven in engels)
This hack enables Jsitemap to crawl to all your K2 Simple Image Gallery photos, and gives your image crawling an amazing boost
open
/plugins/content/jw_sigpro/jw_sigpro/tmpl/YOURSIGTEMPLATE/default.php (check the SIG settings for Layout template for image galleries)
find (around line 24)
<img class="sigProImg" src="/%3C?php_echo_%24transparent%3B_%3F%3E=" alt="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$photo->filename; ?>" title="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$photo->filename; ?>" style="width:<?php echo $photo->width; ?>px;height:<?php echo $photo->height; ?>px;background-image: url('/<?php echo $photo->thumbImageFilePath; ?>');" />
to:
<img alt="<?php echo JText::_(‘YOUR_SITE_NAME').' '.$photo->captionTitle; ?>" title="<?php echo JText::_(‘YOUR_SITE_NAME').' '.$photo->captionTitle; ?>" class="sigProImg" src="/%3C?php_echo_%24photo-%3EthumbImageFilePath%3B_%3F%3E=" style="width:<?php echo $photo->width; ?>px;height:<?php echo $photo->height; ?>px;" />
change "Title description for images sitemap" in Sitemap settings from Auto to Alt.
result:
all images in the SIG pro will be indexed by Google as: YOUR_SITE_NAME TITLE
SMACK it® is a registered trademark of Pieter Bos filed at BBIE nr: # 0926825
© 2 0 2 3 S M A C K i t C R E A T I O N S A l l R i g h t s R e s e r v e d