Image Meta missing in Local Business Pro

Home Forums All Other Themes Image Meta missing in Local Business Pro

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #89970
    thindplsthindpls
    Participant
    • Topics: 4
    • Replies: 6
    • Total: 10
    Member since: November 9, 2017

    site https://fiscaltaxhelp.com
    Using Local Bussiness Pro- Image meta tags don’t show up on any banners so all pages are missing alt tags. How can it be fixed?
    Thanks

    #90086
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30977
    • Total: 30977
    Member since: August 16, 2013

    Hi,

    Kindly edit architect-pro/header.php file and paste below code just before </head> tag.

    <script>
    jQuery(document).ready(function() {
      jQuery('img').each(function(){
        var $img = jQuery(this);
        var filename = $img.attr('src')
        $img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));
      });
    });
    </script>

    Regards,
    Chris

    #90125
    thindplsthindpls
    Participant
    • Topics: 4
    • Replies: 6
    • Total: 10
    Member since: November 9, 2017

    Thank you for your assistance. I entered the script in the header.php just before </head> tag but see no results.

    You stated “edit architect-pro/header.php file”
    Not sure what “architect-pro” refres to.

    #90151
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 30977
    • Total: 30977
    Member since: August 16, 2013

    Hi,

    Kindly edit skt-local-business-pro/header.php file and paste below code just before </head> tag.

    <script>
    jQuery(document).ready(function() {
      jQuery('img').each(function(){
        var $img = jQuery(this);
        var filename = $img.attr('src')
        $img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));
      });
    });
    </script>

    Regards,
    Chris

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.