• Hi there good people of the forum. I used the code up on here https://www.LiewCF.com/ to add navigation buttons to my wordpress theme based on the pages that are there and the standard Kubrick theme. All working fine except the ‘blog’ page, I would like to be called news. I’m not quite sure what the nav bar is referencing to generate that first ‘blog’ tab and so don’t know how to change it, the rest correspond to the page titles..

    Help massively appreciated!

    https://www.unfoldmusic.co.uk

Viewing 8 replies - 1 through 8 (of 8 total)
  • Can you post the code to your header.php?

    Thread Starter etchartists

    (@etchartists)

    Thanks for the reply, here it is:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <style type=”text/css” media=”screen”>

    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !empty($withcomments) && !is_single() ) {
    ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbg-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
    <?php } ?>

    </style>

    <?php wp_head(); ?>
    </head>
    <body>
    <div id=”page”>

    <div id=”header”>
    <div id=”headerimg”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>
    </div>
    <?php if (function_exists(‘suckerfish’)) {suckerfish();} ?>
    <hr />
    <!–
    Top navigation bar for WordPress default theme(Kubrick) by https://www.LiewCF.com/

    Credit:
    – CSS code ripped from https://binarybonsai.com/kubrick/
    – idea to use wp_list_pages() enlighten by https://www.lamateporunyogur.com/pool

    Apply:
    Copy and paste all code here into the END of /wp-content/themes/default/index.php
    –>

    <style type=”text/css” media=”screen”>
    #supernav {
    font: bold 9px/9px Verdana, Lucida Grande, Arial, Helvetica, Sans-Serif;
    position: absolute;
    top: 201px;
    left: 50%;
    width: 720px;
    margin: 0 0 0 -360px;
    padding: 5px 16px; /* duplicate the tab size */
    text-align: left;
    display: block;
    }

    #supernav li {
    margin: 0;
    padding: 0;
    text-transform: lowercase;
    display: inline;
    }

    #supernav a {
    color: #FFFFFF;
    background: #999999;
    font-weight: normal;
    height: 19px;
    padding: 5px 16px;
    /* round corner tab – not for IE */
    -moz-border-radius-topright: 6px;
    -moz-border-radius-topleft: 6px;
    }

    #supernav a:hover {
    color: #111;
    background: white;
    text-decoration: none;
    /* round corner tab – not for IE */
    -moz-border-radius-topright: 6px;
    -moz-border-radius-topleft: 6px;
    }

    #supernav .current_page_item a {
    color: #111;
    background: white;
    text-decoration: none;
    /* round corner tab – not for IE */
    -moz-border-radius-topright: 6px;
    -moz-border-radius-topleft: 6px;
    }

    #hack {
    background: white;
    height: 2px;
    width: 450px;
    display: inline;
    position: absolute;
    top: 220px;
    left: 50%;
    margin: 0 0 0 -350px;
    padding: 0;
    z-index: 2;
    }
    </style>

    <?php //highlight ‘Blog’ if not Page
    if (is_page()) {
    $highlight = “page_item”;
    } else {
    $highlight = “page_item current_page_item”;
    }
    ?>

    <div>
    <ul id=”supernav”>
    <li class=”<?php echo $highlight; ?>”>“>Blog
    <?php wp_list_pages(‘title_li=’); ?>

    </div>
    <div id=”hack”></div>
    <!–
    End – Top navigation bar for WordPress default theme(Kubrick) – by https://www.LiewCF.com
    –>

    See this code?

    <div>
    <ul id="supernav">
    <li class="<?php echo $highlight; ?>">">Blog
    <?php wp_list_pages('title_li='); ?>
    
    </div>
    <div id="hack"></div>

    Looks like it should be this:

    <div>
    <ul id="supernav">
    <li class="<?php echo $highlight; ?>">News</li>
    <?php wp_list_pages('title_li='); ?>
    </div>
    <div id="hack"></div>

    Try that and let me know.

    Hi I have the same prob–I want to add pages to my existing site: https://www.Ideasmyth.com–how do I do this?

    You go onto your Dashboard and WRITE a PAGE, instead of a POST.

    Thread Starter etchartists

    (@etchartists)

    Hi Alan,
    Thanks for your help. I think you identified the correct code but it didn’t actually work, I have got it working now though, so thanks a lot. Resolved!
    Best
    Theo

    Hi Alan,
    Thanks for your help. I think you identified the correct code but it didn’t actually work, I have got it working now though, so thanks a lot. Resolved!
    Best
    Theo

    when people solve a problem is it possible for them to explain how they solved it so that it keeps the flow of the post. I think solutions are more important than the question or knowing someone has solved it.

    Thank you

    etchartists said: “I have got it working now though, so thanks a lot. Resolved!”

    Yeah – what did prove to be the correction?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘change navigation bar text?’ is closed to new replies.