Support » Fixing WordPress » Remove default "Home" page

  • vpolite

    (@vpolite)



    What lines of code do I have to remove to delete the default “Home” page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael

    (@alchymyth)

    depends on your theme.

    vpolite

    (@vpolite)

    Thanks for responding. I’m using twentyeleven.

    Michael

    (@alchymyth)

    functions.php:

    function twentyeleven_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    }

    change true to false

    btw:
    don’t edit Twenty Eleven directly – consider creating a child theme http://codex.wordpress.org/Child_Themes and make the edits there.
    it is important to have an unedited default theme; also, all customisations to Twenty Eleven will be overwritten with the next upgrade of your wordpress version.

    vpolite

    (@vpolite)

    Cool. Thanks for the help. I’ve been putting all edited files in the child folder.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove default "Home" page’ is closed to new replies.