WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Language Switcher
[resolved] Size flags for SEO (6 posts)

  1. alainwoll
    Member
    Posted 1 year ago #

    Hello,
    How to add flags dimension (size : height, width) for SEO.
    Thank you for your response

    http://wordpress.org/extend/plugins/multisite-language-switcher/

  2. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. alainwoll
    Member
    Posted 1 year ago #

    Read this recommendation.
    http://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.

  4. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  5. alainwoll
    Member
    Posted 1 year ago #

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

    Thank you very much

  6. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    OK, very good.

    BTW Don't forget to vote for the plugin. ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags