WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Home link missing in top menu (PressPlay theme) (5 posts)

  1. ailusia
    Member
    Posted 3 years ago #

    I recently installed the PressPlay theme and I replaced the title and description in the header with my custom image (via PressPlay Options).

    However, the image doesn't link to home page. I tried to fix that, but I couldn't, because the image is added as a div background - impossible to make it a link...

    So I wanted to add a "Home" link in the top menu above header. I added 'echo get_option('home');' in the page-list. Like this:

    '<ul id="page-list">
    <?php if($pp_above_header == "above_header_pages"){
    echo get_option('home');
    wp_list_pages('title_li=');
    } elseif($pp_above_header == "above_header_categories"){
    wp_list_categories('title_li=');
    } else { } ?>
    <!-- #page-list -->'

    It returns a black url at the end of menu. See it here:
    http://klikerlab.pl/
    But the url is not a hyperlink and it's not what I want, of course...
    What should I do?

    Thanks for any advice!

  2. ailusia
    Member
    Posted 3 years ago #

    Anyone?

  3. jrav001
    Member
    Posted 3 years ago #

    Replace this line:
    echo get_option('home');

    With this line:
    ?><li><a href="<?php echo get_settings('home'); ?>">HOME</a></li><?php

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    ?><li><a href="<?php bloginfo('url'); ?>">HOME</a></li><?php

    might be better coding practice.

  5. ailusia
    Member
    Posted 3 years ago #

    Thanks! It works! :)

Topic Closed

This topic has been closed to new replies.

About this Topic