How to remove admin Site Search in Global Site search

Hello

How can i remove "admin Site Search:" from my search results.

Thank you

  • Vaughan

    Hi @peter,

    Try the following.

    Edit /templates/global-site-search.php

    Find the following;

    <?php if ( function_exists( 'members_directory_site_admin_options' ) ) : ?>
    							<strong>
    								<a href="http://<?php echo $current_site->domain . $current_site->path . $members_directory_base . '/' . $the_author->user_nicename ?>/">
    									<?php echo $post_author_display_name ?>
    								</a>
    								<?php _e( 'wrote', 'globalsitesearch' ) ?>:
    							</strong>
    						<?php else : ?>
    							<strong><?php echo $post_author_display_name ?> <?php _e( 'wrote', 'globalsitesearch' ) ?>:</strong>
    						<?php endif; ?>

    Replace with:

    <strong><?php echo $post_author_display_name ?> <?php _e( 'wrote', 'globalsitesearch' ) ?>:</strong>

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.