Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    I believed that height and width in the image tag is obsolete. Would you say a little bit more about this? Do you have a link with some information?

    Anyway … you could change the output: there is a ‘msls_link_create’-hook when the link objects will be created.

    Thread Starter alainwoll

    (@alainwoll)

    Read this recommendation.
    https://gtmetrix.com/specify-image-dimensions.html
    Also found this on google speed recommendation. The anomaly appears when submitting the site to the notation.

    Can you tell me more about the filter output …
    Thank you again.

    Plugin Author Dennis Ploetner

    (@realloc)

    Yes, of course … You can create your own class. For example you could extend the MslsLinkImageOnly-class and then attach it to the filter:

    class MyLinkImageOnly extends MslsLinkImageOnly {
        protected $format_string =
            '<img width="16" height="11" src="{src}" alt="{alt}"/>';
    }
    
    function my_link_create() {
        return new MyLinkImageOnly();
    }
    add_filter( 'msls_link_create', 'my_link_create' );

    Let me know if this works for you!

    Thread Starter alainwoll

    (@alainwoll)

    I understood the construction … With option 0, it works perfectly ….

    Thank you very much

    Plugin Author Dennis Ploetner

    (@realloc)

    OK, very good.

    BTW Don’t forget to vote for the plugin. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Size flags for SEO’ is closed to new replies.