Forums

[resolved] 2 Home Buttons (5 posts)

  1. malcolms
    Member
    Posted 2 years ago #

    Website is in process of being structured. I have started with Bernie's Theme. I selected one of my pages "Welcome" to be the static home page. On the site I am confronted with two buttons one called welcome and the other called home, both showing the same content. I would be happy with either button but their is no "home " page in the page manager.

    If anyone can help I would really appreciate it. I have looked in the forums and found people who have had the same problem and resolved it but I can't find the replies that helped them do it

    Web UrL is http://www.penpalproject.com

    Please ignore look. I have been fragging about with it to see what can be done.
    All the best

    Malcolm

  2. moshu
    Member
    Posted 2 years ago #

    Most likely the "Home" link is hardcoded in your theme. In this case in the sidebar.php file, I guess.

    Poor choice of theme - it doesn't have a page.php, which should be the default Page template and should NOT have the call for the comment form in it. It looks so odd that comment gizmo on a welcome/front page.

  3. malcolms
    Member
    Posted 2 years ago #

    Thank you for your reply. I've looked at the template files though I am not a PHP programmer. The Home link is mentioned in two of the pages header.php

    [<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>

    <h2 class="hide">Main menu:</h2>
    <ul class="page" id="m0">
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
    <li class="<?php echo $highlight; ?>">">Home

    <?php endif; ?>]

    and the functions.php

    [<ul class="page">
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
    <li class="<?php echo $highlight; ?>">">Home
    ]I can't find any reference to home in any other page in the theme folder.

    I appreciate that the template has other limitations but it does have some features that i like particularly the way it handles subpages.

    Thank you for your comments. If you could help further I would be grateful

    All the best

    Malcolm

  4. moshu
    Member
    Posted 2 years ago #

    Remove that line from both places:
    <li class="<?php echo $highlight; ?>">">Home

    As for the limitations: save your index.php as page.php and edit out/delete what you don't need, e.g. the call for the commants_template.

  5. malcolms
    Member
    Posted 2 years ago #

    Thank you so much for your help. That now works the way I want. I take onboard what you say about the template in general I am just glad that I now know I can get the navigation I want now

    All the best

    Malcolm

Topic Closed

This topic has been closed to new replies.

About this Topic