• Resolved GregW

    (@gwmbox)


    Is there a way I can remove the UM SEO comments?

    <!-- START - Ultimate Member profile SEO meta tags -->
    ...
    <!-- END - Ultimate Member profile SEO meta tags -->
    
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • missveronica

    (@missveronicatv)

    @gwmbox

    You can try to add this code snippet to your active theme’s functions.php file or use the “Code Snippets” plugin.

    https://wordpress.org/plugins/code-snippets/

    This code snippet will disable the SEO in UM:

    remove_action( 'wp_head', 'um_profile_dynamic_meta_desc', 20 );

    Thread Starter GregW

    (@gwmbox)

    Tried that, didn’t work unfortunately when adding it to my themes functions.php file.

    I want to keep the SEO for UM but just remove the text comments above and below it

    • This reply was modified 12 months ago by GregW.
    missveronica

    (@missveronicatv)

    @gwmbox

    Works OK with my child-theme’s functions.php file.

    Important that you use the active theme’s functions.php file, might be a child-theme.

    Thread Starter GregW

    (@gwmbox)

    I want to keep the SEO for UM but just remove the text comments above and below it

    missveronica

    (@missveronicatv)

    @gwmbox

    You will find the SEO comments in
    .../wp-content/plugins/ultimate-member/includes/core/um-actions-profile.php

    at lines 805/836

    Thread Starter GregW

    (@gwmbox)

    Thanks, but that needs editing the core files. Guess I will just leave it there 🙂

    Thanks for trying to help

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide UM SEO Comment’ is closed to new replies.