Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1017620

    Hello,

    I realize this may not be within the realm of what the enfold support team can help with but just wanted to post incase you may be able to help. On my website there is a page created that’s about the Author or contributer and I can’t figure out how to get rid of it. Would someone be able to help me figure out how to delete this page? (see private section)

    #1017659

    Hey bobfurgo,
    Please try the Disable Author Pages plugin
    or, Try adding this code to the end of your functions.php file in Appearance > Editor:

    // Disable access to author page
    add_action('template_redirect', 'my_custom_disable_author_page');
    
    function my_custom_disable_author_page() {
        global $wp_query;
    
        if ( is_author() ) {
            $wp_query->set_404();
            status_header(404);
            // Redirect to homepage
             wp_redirect(get_option('home'));
        }
    }

    it will redirect all traffic for the author page to the home page.

    Best regards,
    Mike

    #1023702

    thank you Mike!

    #1023725

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘author page’ is closed to new replies.