• Resolved roxer82

    (@roxer82)


    Hello. I notice that AIOSeo adds dir=”ltr” to the html tag. Is it possible to remove it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @roxer82,

    It only does this is in the admin area.

    You should be able to remove it through this code snippet –

    remove_filter( 'language_attributes', [ aioseo()->admin, 'alwaysAddHtmlDirAttribute' ], 3000 );

    Out of curiosity, may I ask why you want to remove the attribute?

    Thread Starter roxer82

    (@roxer82)

    Should I add it in functions.php? Because I can’t save it, it gives me an error.

    Reason: with the march Google update we had an extremely decrease of visitors from Discover. Visiting sites that are ranked in Discover we noticed none of them had dir=”ltr”. I don’t really know if removing it, it will help my site, but we want to try.

    Thanks.

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @roxer82,

    I’m not sure why you’re getting an error since the code is valid; you might need to add it via FTP. Your functions.php file is a good spot for it.

    That being said, removing this attribute will definitely not help your rankings in any way because we only add this attribute in the admin area of your site for logged-in users; search engines and other visitors won’t see it.

    There decrease in visitors likely has to do with the fact that Google’s algorithm is not liking your content anymore as much. Unfortunately I think it’s too early to tell what changed in the latest update so I can’t provide you with any advice as to why that would be.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to’ is closed to new replies.