• I have a question. I want to create pages on my WP without them appearing on the to Navegation bar. is that possible. i tried by selecting the ‘page parent’
    see here is my site.
    http://www.todabeat.frih.net/site/
    i want to create a page, and then add a link inside my other page. exapmle.
    I created ‘interviews’ then under that i created ;jae havana; << it’s under interview page parent. but i don;t want it to appear on the top nav, and i tried to make a blog page, but it appears on the main page and i don;t want that. So any help.
    Will

Viewing 6 replies - 1 through 6 (of 6 total)
  • This is a function of your theme, in your case “MX4” and (although I don’t know the theme) you should start by looking at the header.php file, if one exists.

    Thread Starter todabeat

    (@todabeat)

    What excatly are we looking for?
    ……………………………………………………
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt;
    <?php require_once get_template_directory().”/BX_functions.php”; ?>
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; xml:lang=”en” lang=”en”>
    <head>
    <title><?php bloginfo(‘name’); wp_title(); ?></title>
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” />
    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen, projection” />
    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php /*comments_popup_script(520, 550);*/ ?>
    <?php wp_head();?>
    </head>

    <body>
    <div id=”container”<?php if (is_page() && !is_page(“archives”)) echo ” class=\”singlecol\””; ?>>
    <div id=”bloginfo”>“><?php bloginfo(‘name’); ?> | <?php bloginfo(‘description’); ?></div>
    <!– header …………………………… –>
    <div id=”header”>
    <!– <h1>“><?php bloginfo(‘description’); ?></h1>–>
    </div>
    <!– /header –>

    <!– navigation …………………………… –>
    <div id=”navigation”>

    <form action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>” method=”get”>
    <fieldset>
    <input value=”<?php echo wp_specialchars($s, 1); ?>” name=”s” id=”s” />
    <input type=”submit” value=”Go!” id=”searchbutton” name=”searchbutton” />
    </fieldset>
    </form>

      <li<?php if (is_home()) echo ” class=\”selected\””; ?>>“>Home
      <?php
      $pages = BX_get_pages();
      if ($pages) {
      foreach ($pages as $page) {
      $page_id = $page->ID;
      $page_title = $page->post_title;
      $page_name = $page->post_name;
      if ($page_name == “archives”) {
      (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ‘ class=”selected”‘:$selected=”;
      echo “<li”.$selected.”>Archives\n”;
      }
      elseif($page_name == “about”) {
      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
      echo “<li”.$selected.”>About\n”;
      }
      elseif ($page_name == “contact”) {
      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
      echo “<li”.$selected.”>Contact\n”;
      }
      elseif ($page_name == “about_short”) {/*ignore*/}
      else {
      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
      echo “<li”.$selected.”>$page_title\n”;
      }
      }
      }
      ?>

    </div><!– /navigation –>

    <hr class=”low” />

    This is the section which appears to dynamically generate your navigation menu:


    <?php
    $pages = BX_get_pages();
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_name;
    if ($page_name == "archives") {
    (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' class="selected"':$selected='';
    echo "<li".$selected.">Archives\n";
    }
    elseif($page_name == "about") {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected.">About\n";
    }
    elseif ($page_name == "contact") {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected.">Contact\n";
    }
    elseif ($page_name == "about_short") {/*ignore*/}
    else {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected.">$page_title\n";
    }
    }
    }
    ?>

    If you’re not comfortable with editing the code, perhaps contact the theme author?

    Thread Starter todabeat

    (@todabeat)

    but i mean, is there a way to just create a page or a blog and leave them floating around. So if i publish a blog it won’t appear on the news page?

    Thread Starter todabeat

    (@todabeat)

    am i explaining myself?

    Given that creating pages is something that happens less frequently. why not just hardcode the page links into the sidebar ?
    Hide what you want, position them where you want and use the order you want.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Question’ is closed to new replies.