Custom Alt Tag / SEO

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jsdva
    Mega Mivite





    • Apr 2006
    • 1166

    #1

    Custom Alt Tag / SEO

    SEO wants the product title to be one thing and the alt tag to be another thing other than the product name. So, what I want/don't want is:

    I don't want it to be global, since I don't want to wipe out all the alt tags for all products, but I want to be able to do maybe one at a time as we go.

    <div class="product-image"><img src="&mvt:product:image;" alt="if not &mvt:product:name; then put in my custom alt tag" /></div>

    Is this something that can be done, or has anyone else had success doing it? Advice is appreciated.

    Jamie
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration
  • jsdva
    Mega Mivite





    • Apr 2006
    • 1166

    #2
    <div class="product-image"><img src="&mvt:product:image;" alt="if not my custom alt tag, then put in &mvt:product:name;" /></div>

    Maybe this is clearer to what I want.
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration

    Comment

    • nottheusual1
      Mega Mivite


      • Jul 2008
      • 1124

      #3
      Create a custom field called ALTTAG and populate as needed in the products. THen this should work:

      Code:
      <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:ALTTAG">
      <div class="product-image"><img src="&mvt:product:image;" alt="l.all_settings:product:customfield_values:customfields:ALTTAG" /></div>
      <mvt:else>
      <div class="product-image"><img src="&mvt:product:image;" alt="&mvt:product:name;" /></div>
      </mvt:if>
      I think

      Comment

      • jsdva
        Mega Mivite





        • Apr 2006
        • 1166

        #4
        Thanks! I'll play with it. We've got so much customization in this site that playing will be key.
        Jamie Donaldson
        JSDVS Web Design / Development
        Web Design | Web Development | E-commerce Design & Integration

        Comment

        • delcorsets
          Mighty Mivite





          • Mar 2006
          • 620

          #5
          I've also been thinking about different ways to handle alt tags. For SEO it's desirable to have the alt tag be more than just the product name, and instead be more like an actual sentence describing the image itself.

          We already have some product custom fields in place for faceted search and I wonder if those fields could also be leveraged for alt tags? For example, with conditionals in place to check if particular custom fields have a value, could the alt tag be programmatically constructed to be:

          alt="&mvt:product:name;" designed by "l.all_settings:product:customfield_values:customf ields:designer" made of "l.all_settings:product:customfield_values:customf ields:color" "l.all_settings:product:customfield_values:customf ields:fabric".

          Any thoughts if something like that would be possible, efficient, and meet with what SEO is looking for?
          Psydde Delicious
          Delicious Boutique & Corseterie
          Philadelphia, PA
          www.DeliciousBoutique.com
          www.DeliciousCorsets.com

          Comment

          • nottheusual1
            Mega Mivite


            • Jul 2008
            • 1124

            #6
            Current wisdom says your mashup will be a great SEO/accessibility improvement. How you've expressed it should work with some markup to control spacing/formatting. Give it a try - you'll be pleasantly surprised.

            Comment

            Working...
            X