• Resolved mrlennyman

    (@mrlennyman)


    Hi there,

    I love the simplicity of your plugin and how you are adding the hidden text for Logos for accessibility issues.

    I did come across another issue when testing the plugin on this site:
    https://www.webaccessibility.com

    The violation is that the links open in new windows without a warning:
    “Ensure links or controls that open new windows or frames do not open without a warning”

    Is there any way to combat this – either to add a warning or to open links in same page/pop up?

    Many thanks!
    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    Hi John, thanks for the question. You can change the link behavior to make your buttons open on the same page, using a filter on the link target. Something like this should make all of the buttons do this:

    
    add_filter( 'scriptlesssocialsharing_link_target', '__return_empty_string' );
    

    You can add the filter to your theme’s functions.php file, a custom plugin, or wherever you keep custom code. Just practice safe coding and make sure things are backed up. HTH

    Thread Starter mrlennyman

    (@mrlennyman)

    Excellent – that worked a treat thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Web Accesibility Issue’ is closed to new replies.