delete second “home” page
-
I was hoping that someone could point me in the direction of deleting the second home page for my site…Its not in the header.php as I have read elsewhere in the forums…can’t seem to figure out where the code is.
Thanks!
-
The link will be in your header.php template file. Or in a file that is called from header.php. Try looking for:
<li class="<?php if(is_home() || is_front_page() ) echo 'current_page_item blogtab';else echo 'page_item blogtab'; ?>"><a href="<?php bloginfo('url');?>">Home</a></li>I’ve looked through almost all of the files, and I can’t find that anywhere…
Then start by looking for
<ul class="dropdown dropdown-horizontal">. The line you want to delete should be just after that line.Hey hey,
I’m trying to do the same but can’t find this
<li class=”page_item “>“>Home
anywhere. It’s not in my header.php. and cant find it anywhere in the coding.
I’m using WP 3.0.1 and Evening Shade 1.2 by pixel theme studio
Please help… 🙂
hello,
first of all i would like to say that i am completely new to wordpress.
I am also trying to delete the home page from my blog, with no luck for the past 3 days. Any information that i find in the internet applies apparently to wordpress 2.8 which is not the same as wordpress 3.01. I am using theme twentyten which is the default.
By the very life of me i have been looking for this
<li class="page_item ">">Homelike the user edjonesorganist and i just can’t find anything in the header.php.I don’t know if i should search in another php file.Please if anyone has found the solution, i’d really appreciate if he could make a post, i am getting really frustrated 🙁
Excuse any mistakes i am not a native speaker 🙂
hello once more,
i kind of found a solution, AFTER A LOT OF SEARCHING, so i would like to share it in case someone has the same problem with me 🙂
Although i couldn’t actually delete the homepage i managed to change its title and give it another name. The procedure is as follows:
1)First go to httpdocs / wp-includes / post-template.php
2)Then find the following piece of code:function wp_page_menu( $args = array( ) ) { $defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'show_home' => true, 'link_before' => '', 'link_after' => ''); $args = wp_parse_args( $args, $defaults ); $args = apply_filters( 'wp_page_menu_args', $args ); $menu = ''; $list_args = $args; // Show Home in the menu if ( ! empty($args['show_home']) ) { if ( true === $args['show_home'] || '1' === $args['show_home'] || 1 === $args['show_home'] ) $text = __('Home'); else $text = $args['show_home']; $class = ''; if ( is_front_page() && !is_paged() ) $class = 'class="current_page_item"'; $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';3)Change the value of the variable $test = __(‘Home’); to whatever you like,for example $test = __(‘Basic’);
4) Save the changes then return to your blog refresh the page and thank me :P. I used ΑΡΧΙΚΗ since i am greek and that’s what i wanted.
http://www.biores.grI am pretty sure that everything that has to do with the home page lies in that part of the code. If anyone finds a better solution please let me know 🙂
hello once more,
i kind of found a solution, AFTER A LOT OF SEARCHING, so i would like to share it in case someone has the same problem with me 🙂
Although i couldn’t actually delete the homepage i managed to change its title and give it another name. The procedure is as follows:
1)First go to httpdocs / wp-includes / post-template.php
2)Then find the following piece of code:function wp_page_menu( $args = array( ) ) { $defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'show_home' => true, 'link_before' => '', 'link_after' => ''); $args = wp_parse_args( $args, $defaults ); $args = apply_filters( 'wp_page_menu_args', $args ); $menu = ''; $list_args = $args; // Show Home in the menu if ( ! empty($args['show_home']) ) { if ( true === $args['show_home'] || '1' === $args['show_home'] || 1 === $args['show_home'] ) $text = __('Home'); else $text = $args['show_home']; $class = ''; if ( is_front_page() && !is_paged() ) $class = 'class="current_page_item"'; $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';3)Change the value of the variable $test = __(‘Home’); to whatever you like,for example $test = __(‘Basic’);
4) Save the changes then return to your blog refresh the page and thank me :P. I used ΑΡΧΙΚΗ since i am greek and that’s what i wanted.
http://www.biores.grI am pretty sure that everything that has to do with the home page lies in that part of the code. If anyone finds a better solution please let me know 🙂
The topic ‘delete second “home” page’ is closed to new replies.