• Resolved mkmazid

    (@mkmazid)


    Hi
    how can I add no-follow no-index to the additional domain?
    Facebook blocked my domain and i need to use this plugin to add a new domain to my multisite WP instance but I am wondering about SEO, and due to this fact I need to add no-follow no-index to the domain I add trough this plugin
    can you please help
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    You can write some logic to your theme’s function.php file in order to add a meta tag to the pages when accessing the additional domain.

    Something like the following, where the domain.tld is the domain to which you want to add the meta tag.

    function custom_hook_metatag() {
        if (MULTIPLE_DOMAIN_DOMAIN === 'domain.tld') {
            echo '<meta name="robots" content="noindex" />';
        }
    }
    add_action('wp_head', 'custom_hook_metatag');

    I hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘no-index’ is closed to new replies.