THEMEHALL
  • Omega
  • Cart
  • Support
  • My Account

how to properly add itemprop image?

Home › Forums › Omega › how to properly add itemprop image?

Tagged: microdata image

  • This topic has 0 replies, 1 voice, and was last updated 11 years, 7 months ago by desu.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • October 4, 2014 at 3:27 am #2614
    desu
    Participant

    I want to add microdata schema.org for image (itemprop=”image”). i have tried add the itemprop in get-the-image.php

    before:

    /* Add the image attributes to the <img /> element. */
    		$html = sprintf( '<img src="%s" alt="%s" class="%s"%s />', esc_attr( $this->image_args['src'] ), esc_attr( strip_tags( $image_alt ) ), $class, $width . $height );

    after

    /* Add the image attributes to the <img /> element. */
    		$html = sprintf( '<img src="%s" alt="%s" class="%s"%s itemprop="image" />', esc_attr( $this->image_args['src'] ), esc_attr( strip_tags( $image_alt ) ), $class, $width . $height );

    but nothing happened, itemprop=”image” doesn’t show up in my <img> tag.

    what should i do?

  • Author
    Posts
Viewing 1 post (of 1 total)

You must login to reply to this topic.

Copyright © 2025 THEMEHALL.

  • Terms of Service
  • Resources
  • Blog
  • Support
css.php