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

  1. ailusia
    Posted 5 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');
    } elseif($pp_above_header == "above_header_categories"){
    } else { } ?>
    <!-- #page-list -->'

    It returns a black url at the end of menu. See it here:
    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
    Posted 5 years ago #


  3. jrav001
    Posted 5 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 5 years ago #

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

    might be better coding practice.

  5. ailusia
    Posted 5 years ago #

    Thanks! It works! :)

Topic Closed

This topic has been closed to new replies.

About this Topic