End of Support for Joomla 3 - Forum closed

[SOLVED] RokSprocket v2.1.9 alt tags

  • pacfood
  • pacfood's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0

RokSprocket v2.1.9 alt tags was created by pacfood

Posted 8 years 9 months ago #12210
Hi
I am trying to insert alt tags into our images to help with SEO.
All images are inserted using RokSprocket v2.1.9 modules either in the header bar or in the grid content.
There is nowhere to access the code in these modules to input the alt tag.
Can you please advise how I can do this?
I know if an image is inserted into an article it can be done there, in the source code.
However for the styling of our site we have to have the headerbar on each page, either as a slider or a single static image.
Please advise, thanks.
by pacfood

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic RokSprocket v2.1.9 alt tags

Posted 8 years 9 months ago #12212
Hi there, which layout?
Slideshow or mosaic ?

Please Log in or Create an account to join the conversation.

  • pacfood
  • pacfood's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0

Replied by pacfood on topic RokSprocket v2.1.9 alt tags

Posted 8 years 9 months ago #12240
Hi
Some pics are in the slideshow, (headerbar).
The other pics are in the grid content, not sure if this is mosaic? Please see attached pictures for confirmation, thanks.
by pacfood
Attachments:

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic RokSprocket v2.1.9 alt tags

Posted 8 years 9 months ago #12241
Hi there,
you can add the "alt" text manually, therefore you have to edit our override:
Add this code below to "alt=""

<?php echo $item->getPrimaryImage()->getAlttext(); ?>

Attachment alt-text.jpg not found



The override can be found at:
Joomla/templates/your theme/roksprocket/layouts/grids/themes/basic/item.php
Attachments:

Please Log in or Create an account to join the conversation.

  • pacfood
  • pacfood's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0

Replied by pacfood on topic RokSprocket v2.1.9 alt tags

Posted 8 years 9 months ago #12242
Ok thanks, I will have a look.
by pacfood

Please Log in or Create an account to join the conversation.

  • pacfood
  • pacfood's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0

Replied by pacfood on topic RokSprocket v2.1.9 alt tags

Posted 8 years 9 months ago #12243
Hi
I have added this to a test site and am not too sure if it is correct.
Please see the code image attached.
If yes it does not seem to alter anything. Please advise.
by pacfood
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License