Dequeue Ultimate Member still leaving UM assets in page
-
I have seen your support advice for dequeueing Ultimate Member on pages from here – https://docs.ultimatemember.com/article/1490-how-to-remove-css-and-js-on-non-um-pages
This almost works, but there are still remnants of the Ultimate Member plugin on other pages.
In wp_head():
<style type="text/css"> .um_request_name { display: none !important; } </style>
In the footer():
<div id="um_upload_single" style="display:none"></div>
<div id="um_view_photo" style="display:none"> <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> <div class="um-modal-body photo"> <div class="um-modal-photo"></div> </div> </div>
and
<script type="text/javascript"> jQuery( window ).on( 'load', function() { jQuery('input[name="um_request"]').val(''); }); </script>
The
href="javascript:void(0);"
is important to remove as this is heavily affecting a sites LightHouse 6 score as it is an anti pattern.Can you please advise how to remove this additional code?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Dequeue Ultimate Member still leaving UM assets in page’ is closed to new replies.