• Hi!

    When running a test on Google page speed test I get a notification that my image in my about me widget does not have dimension. And that I need to include width and height attributes. I think that is something you must help me with since this widget was included in your theme.

    Best regards
    Ann

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    ?Please try to add the below JS code from the Appearance > Customize > Custom CSS/JS, and check.

    jQuery( document ).ready(function() {
      jQuery('.oceanwp-about-me-avatar.clr img').css({
       'width' : '25px',
       'height' : '25px'
    });
    });

    PS- Change the width and height value according to need.

    Thread Starter ayoungerskin

    (@ayoungerskin)

    Thank you! That made a huge difference on my page speed score!! ??

    Can you also advise on how to not have the text in the header change at the beginning of the page load? If you check my site and see the header you see what I mean.

    Best regards
    Ann

    Hello,

    Unfortunately, that is not possible.
    Since the section created with the elementor and Oceanwp doesn’t control the elementor design/settings.

    Thread Starter ayoungerskin

    (@ayoungerskin)

    Hi again,

    Ok.

    But back to the original question. You gave me this answer and I thought it helped:

    Hello,
    
    ?Please try to add the below JS code from the Appearance > Customize > Custom CSS/JS, and check.
    
    jQuery( document ).ready(function() {
      jQuery('.oceanwp-about-me-avatar.clr img').css({
       'width' : '25px',
       'height' : '25px'
    });
    });
    PS- Change the width and height value according to need.

    But now I have seen it did not add any length and height on the image according to page speed insight :-/ The size is still missing :-/

    Thread Starter ayoungerskin

    (@ayoungerskin)

    Hi again, did you see this?

    Best regards
    Ann

    Hello,

    Tried checking and the above code is working well.

    Kindly add the code and again and let us know, so I will try to inspect it.

    Thread Starter ayoungerskin

    (@ayoungerskin)

    Yes I tried adding it once more (copied and paste). Now it does seem like the warnings I got about image size have disappeared though. I will let you know if it comes back ??

    Sounds good. ??

    Let us know us know if the issue resolved.

    Thread Starter ayoungerskin

    (@ayoungerskin)

    Hi again,

    Actually, the problem is still a fact ?? I now checked pagespeed insights tool https://developers.google.com/speed/pagespeed/insights/?hl=sv

    And if you type in my website there you will see exactly what comes up. It says this image in my about me widget has no dimensions ??

    Please help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘the image in my about me widget’ is closed to new replies.