Hide UM SEO Comment | WordPress.org

[ad_1]

@gwmbox

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

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 2 hours, 10 minutes ago by GregW.

@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

@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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer