• Um adds this uncrawlable link on all of my pages impacting the SEO of my site. Please help me fix this. below is the element from lighthouse which creates the bug

    <a href="javascript:void(0);" data-action="um_remove_modal" class="um-modal-close" aria-label="Close view photo modal">
    <i class="um-faicon-times"></i>
    </a>

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @naresh2345

    Please try adding the following Code Snippet:

    add_action("template_redirect", function(){
    
       if( function_exists("um_is_core_page") && ! um_is_core_page("user") ){
         remove_action( 'wp_footer', array( UM()->modal(), 'load_modal_content' ), 9 );
       }
    });

    Let me know if the hidden anchor tag still shows up after adding the above code. You can add the code to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code.

    Regards,

    Thread Starter naresh2345

    (@naresh2345)

    can i add the code from appearance > customise > additional css ?

    Thread Starter naresh2345

    (@naresh2345)

    @ultimatemembersupport the code works! Thank you so much for the support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ultimate member adds Uncrawlable link on every page’ is closed to new replies.