End of Support for Joomla 3 - Forum closed

Alt Attribute in Rockspocket Modul

  • harryk
  • harryk's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0

Alt Attribute in Rockspocket Modul was created by harryk

Posted 7 years 5 months ago #15859
Hallo Support,
ich habe alle Treats im deutschen Forum durchsucht, hoffe ich habe nichts übersehen. Gibt es eine Möglichkeit alt Attribute in den Rockspocket Modulen Features, Stripes und Mosaic und zu setzen. Wäre für mich aus Seo Technischer Hinsicht sehr wichtig.

Vielen Dank schon mal, ihr macht hier nen tollen Job ;-)
by harryk

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

Replied by joomlaplates on topic Alt Attribute in Rockspocket Modul

Posted 7 years 5 months ago #15872
Hallo,
"alt" Attribute können sie nicht für jedes einzelne Bild setzen.
Sie können jedoch die PHP Ausgabe für alle Bilder ändern bzw ein "alt" Attribut setzen.
Hierzu müssen sie folgende PHP Datei abändern:
template name\roksprocket\layouts\features\themes\slideshow\item.php
Hier z.B. haben wir dem alt Atribute den Titel vergeben:

<?php if ($item->getPrimaryLink()) : ?>
<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>"><img src="<?php echo $image->getSource(); ?>" alt="" style="max-width: 100%; height: auto;" /></a>
<?php else: ?>
<img src="<?php echo $image->getSource(); ?>" alt="<?php echo $item->getTitle(); ?>" style="max-width: 100%; height: auto;" />
<?php endif; ?>


Attachment alt-2.jpg not found

Last Edit:7 years 5 months ago by joomlaplates
Attachments:
Last edit: 7 years 5 months ago by joomlaplates.
The following user(s) said Thank You: harryk

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

  • harryk
  • harryk's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0

Replied by harryk on topic Alt Attribute in Rockspocket Modul

Posted 7 years 5 months ago #15878
Danke für die schnelle Antwort, hat bei den Module Features geklappt, bei Stipes leider nicht, wie wäre da die Lösung? Oder habe ich was falsch gemacht.
Danke wiederum ich glaube ich sende euch mal was gutes zur Entschädigung ;-)
by harryk

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

Replied by joomlaplates on topic Alt Attribute in Rockspocket Modul

Posted 7 years 5 months ago #15879
Hallo,
das obige Beispiel war lediglich für das "features" Layout.
Aber da das Module weitere Layouts anbietet, muss das ebenso geändert werden.
Demnach gilt es folgede FIles für das strips Layout zu ändern:

template name\roksprocket\layouts\strips\themes\ihr theme ( cards, seperated ect pp\item.php


Attachment layouts-2-3-4-5-6-7.jpg not found



PS: Das größte Dankeschön ist eine positive Bewertung:
Bitte nehmen sie sich 5 Minuten Zeit und bewerten sie uns auf TrustPilot:
www.trustpilot.com/review/www.joomlaplates.com
Last Edit:7 years 5 months ago by joomlaplates
Attachments:
Last edit: 7 years 5 months ago by joomlaplates.

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 © 2022 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License