• Resolved goldmember

    (@goldmember)


    wordpress newbie here…

    please take a look at the left-hand nav bar of my site: https://www.goldcoastchamber.com/wordpress/

    As you can see there’s both a “Home” page and a “New-Homepage”. Since I couldn’t figure out how to edit the “Home” page, and put the content there I wanted, I created a “New-Homepage” and somehow (i forget) was able to feed the content of “New-Homepage” back to “Home”. But now that I was able to do that, I need to hide the nav-bar link to either one of the two pages so visitors don’t get confused.

    Please advise how I do this?????? Thanks!

Viewing 15 replies - 1 through 15 (of 17 total)
  • If you are using the template tag, wp_page_menu(), to display your list of Pages, then may want to use this argument: ‘show_home=0’.

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

    Thread Starter goldmember

    (@goldmember)

    i dont really know if i’m using template tags. which page should i look in? and where should i add ‘show_home=0’??? sorry, wordpress newbie.

    please advise. thanks!

    With the help of the Template Hierarchy article, determine what Template is displaying your Pages, then paste the content of that template in a pastebin and report the link back here.

    Thread Starter goldmember

    (@goldmember)

    i think page.php displays my pages but i’m not really sure. could be single also.

    here’s the code for page.php:

    <div id="outer_wrapper">
    
    <?php get_header(); ?>
    
    <div id="contentwide">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <?php list_subpages_andreas01(); ?> <?php // This generates the subpage menu. If you don't want to use it, delete this line. ?>
    
    <div class="post">
    <?php the_content('<p class="serif">Read more &raquo;</p>'); ?>
    <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    <?php edit_post_link('Edit this page','<p>','</p>'); ?>
    <?php comments_template(); ?>
    <?php endwhile; endif; ?>
    </div>
    </div>
    
    <div id="footer">
    <h5>The GCCC is a not-for-profit 501(c) (6) non-government membership organization. Member of CIANJ, Member ICC, affiliated
    with<br /> NJAWBO Bergen Chapter, affiliated with Bergen Community College small business development center.</h5><br />
    
    ? 2009 Gold Coast Chamber of Commerce<br />
    Designed by <a href="https://www.adfgadfgadfg.com" target="blank">adfgadfgadfg.com</a></div>
    
    </div><!-- end outer_wrapper div-->

    Don’t see it there. What about a sidebar.php?

    Thread Starter goldmember

    (@goldmember)

    there’s nothing in my sidebar.php file. i deleted it all. the original theme had a second sidebar on the right side of the page that this file refers to. i didnt want that sidebar, so i deleted the contents of the file.

    here’s my single.php file:

    <div id="outer_wrapper">
    
    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    
    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div class="post">
    <h2><?php the_title(); ?></h2>
    
    <div class="contenttext">
    <?php the_content('<p>Read more &raquo;</p>'); ?>
    </div>
    
    <?php link_pages('<p><strong>Pages:<strong> ', '</p>', 'number'); ?>
    <p class="postinfo"><strong>Posted:</strong> <?php the_time('F jS, Y') ?> under <?php the_category(', ') ?>.<br />
    <?php the_tags('Tags: ', ', ',''); ?><?php edit_post_link('[e]',' | ',''); ?></p>
    
    <div class="navigation">
    <p><span class="prevlink"><?php previous_post_link('&laquo; %link','Previous post',''); ?></span>
    <span class="nextlink"><?php next_post_link('%link &raquo;','Next post',''); ?></span></p>
    </div>
    
    <?php comments_template(); ?>
    
    <?php endwhile; else: ?>
    <p>No matching entries found.</p>
    <?php endif; ?>
    </div>
    </div>
    
    <div id="footer">
    <h5>The GCCC is a not-for-profit 501(c) (6) non-government membership organization. Member of CIANJ, Member ICC, affiliated
    with<br /> NJAWBO Bergen Chapter, affiliated with Bergen Community College small business development center.</h5><br />
    
    ? 2009 Gold Coast Chamber of Commerce<br />
    Designed by <a href="https://www.adfgadfgadfg.com" target="blank">adfgadfgadfg.com</a></div>
    
    </div><!-- end outer_wrapper div-->

    Assuming you don’t have a widget that is doing that…

    Get https://wingrep.com and search your theme for wp_list_pages or wp_page_menu. Note need to download your theme to your local machine first before using wingrep.

    Thread Starter goldmember

    (@goldmember)

    well i tried, to no avail, to use the plugin that samboll suggested above. but i’ll give this a shot.

    Thread Starter goldmember

    (@goldmember)

    can’t i just use the “find – in source code” tool in dreamweaver to find these items?

    Whatever you want…

    Thread Starter goldmember

    (@goldmember)

    ok. i found wp_list_pages in:

    classic\sidebar.php:
    <?php wp_list_pages('title_li=' . __('Pages:')); ?>

    default\sidebar.php
    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    wp-andreos01\functions.php:
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>

    wp-andreos01\functions.php:
    $html = wp_list_pages("child_of=$parent_id&depth=$depth&echo=".(!$return)."&title_li=0&sort_column=menu_order");

    wp-andreos01\header.php:
    <?php wp_list_pages('exclude=19&sort_column=menu_order&depth=1&title_li='); ?>

    please advise as to the next step. thanks!

    It’s probably this line in your wp-content/themes/wp-andreos01/functions.php
    <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>

    Thread Starter goldmember

    (@goldmember)

    thanks for hanging in there with me.

    now that we’ve identified the target line of code, what do i do to it? remove it?

    Remove it.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘How do I hide duplicate page???’ is closed to new replies.