Jump to content

alt attribute missing in a fbloginblock image


Recommended Posts

Hello everyone,

First of all, forgive my approximative english, I'm not a native speaker.

 

As you may know, alt attributes are important for SEO, and one pic, which seems to come from fbloginblock module, is missing this attribute.

 

This pic is never displayed and is in my code throught a javascript function 'greet()'.

 

Here it is:

function greet(){
    FB.api('/me', function(response) {
        var src = 'https://graph.facebook.com/'+response.id+'/picture';
        $('#header_user_info span').append('<img style="margin-left:5px" height="20" src="'+src+'"/>');
        login();
    });
}

I tried to figure it out for so long but I didn't succeded, and I have the feeling that I am kicking my heels here.
If one of you has ever encoutered this problem, I'll be glad to hear how you solved it ;)

 

I am using prestashop 1.6.0.9 and my website is https://www.stadin.fr.
I'm a trainee and I never ever used prestashop, forgive me if the solution was obvious.

 

Cheers ;)

Edited by Hazreath (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...