0
Welcome Guest! Login
0 items Join Now

alt attribute with roksprocket features

  • Re: alt attribute with roksprocket features

    Posted 10 years 5 months ago
    • DanG wrote:
      Okay there is a ticket in to add this option directly into RokSprocket. I'll keep an eye on it's progress and report back here.

      I'm not sure why you would put an extra data entry field in Roksprocket for the ALT tag. Why doesn't the module simply pick up the ALT tag that was stored in the database when the image is uploaded via Media Manager or the ALT text field from the image article if the user selects the article image?

      Looking at the current code in the module you can see it grabs the image source but not the ALT text:
      <img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" [b]alt=""[/b] style="max-width: 100%; height: auto;" />

      To me this is kind of a big deal because not only does it have an impact on SEO for pages, this tag is something that search engines include in their algorithm for image searches.
    • Luis's Avatar
    • Luis
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: alt attribute with roksprocket features

    Posted 10 years 3 months ago
    • Hi I just notice this same problem, any advance with the ticket?
      Regards
    • Luis's Avatar
    • Luis
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: alt attribute with roksprocket features

    Posted 10 years 3 months ago
    • This works with the Rolsprocket Tabs but not with Features.
    • fionix's Avatar
    • fionix
    • Rocketeer
    • Posts: 84
    • Thanks: 1

    Re: alt attribute with roksprocket features

    Posted 10 years 2 months ago
    • IS there any progress in this issue? For SEO purpose it's important that this get sorted out, as already mention by OP then this is important.

      Any help would be much appreciated.
    • Cyprus Company Formation and Registration
      with CCLOGIC.COM, we offer businesses to register a Cyprus Company fast.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: alt attribute with roksprocket features

    Posted 10 years 2 months ago
    • fionix wrote:
      IS there any progress in this issue? For SEO purpose it's important that this get sorted out, as already mention by OP then this is important.

      Any help would be much appreciated.

      I tried to highlight this ticket with devs this morning so now we have to wait and see.
    • James's Avatar
    • James
    • Newbie
    • Posts: 4
    • Thanks: 0

    Re: alt attribute with roksprocket features

    Posted 10 years 2 months ago
    • I'm on this too. Most seo analizers detect this as my site's principal problem
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: alt attribute with roksprocket features

    Posted 10 years 1 week ago
  • Re: alt attribute with roksprocket features

    Posted 10 years 5 days ago
    • Hi DanG,

      Could you check your last link please ? I cannot get at it

      Thank you !
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: alt attribute with roksprocket features

    Posted 10 years 5 days ago
    • Fred Barna wrote:
      Hi DanG,

      Could you check your last link please ? I cannot get at it

      Thank you !

      I've reprinted it for you:
      Phil Yonge wrote:
      I can't find an option anywhere in the slideshow features layout to assign my simple item - image alternative text attribute as shown in the output code below. As you can see the attribute is empty. The image upload popup window doesn't have an option either. Does anyone know where this option is please? Frontend login details in secure tab.

      Keep your eyes peeled here -> http://www.rockettheme.com/product-updates as that will be corrected in our RokSprocket 2.1.3 release.

      So before we start I want to make sure we both understand the terminology ;)

      the <image> alt isn't like a ToolTip so even when its working you won't see it on a valid image. It's only visible when the image doesn't exist in the defined location and the alt is used as a content replacement. It also gets use in e-readers for the the visually impaired.

      So in the interim:

      1) in the Images & Links section of your article define the alt text and SAVE.
      2) Go to ..\templates\rt_vermilion\roksprocket\layouts\features\themes\slideshow and save a copy of item.php
      3) in the original file replace the 'alt' parameter with ' alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" ' so that it looks like this:
      <div class="sprocket-features-img-container" data-slideshow-image>
      		<?php if ($item->getPrimaryLink()) : ?>
      			<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>"><img src="<?php echo $image->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>"
       style="max-width: 100%; height: auto;" /><span class="sprocket-image-overlay"></span></a>

      That's it.
    • The following users have thanked you: Fred Barna

  • Re: alt attribute with roksprocket features

    Posted 9 years 9 months ago
    • Will 2.1.13 correct the missing alt attribute in all RokSprocket layouts that load images, including Mosaic layout? I see this thread is specifically about Features, but the problem exists in other layouts like Mosaic. Thanks.

Time to create page: 0.073 seconds