WP - What To Edit To Show Page Links As Tabs ?

11 replies
  • WEB DESIGN
  • |
My website address is - Online Income Startup System

I created a new page for my youtube videos, but the page link is not showing up in the top menu as a menu tab. I want to know where to edit to make the page link show up on the header tab ?

I searched the files in theme editor but couldn't yet find, where the code is located.

Please help...

Thanks
Dr.Spencer Jones
#edit #links #page #show #tabs
  • Profile picture of the author K Meier
    With header do you mean the red bar at the very top?

    Usually it's under menus, maybe you have several menu bars there. Check them all.
    If it's not there, it might be a widget. Go through all widgets.
    If it's not there either then have a look at the Theme Options, sometimes they can be found in there as well.
    {{ DiscussionBoard.errors[6297778].message }}
    • Profile picture of the author Spencer Jones
      Originally Posted by K Meier View Post

      With header do you mean the red bar at the very top?

      Usually it's under menus, maybe you have several menu bars there. Check them all.
      If it's not there, it might be a widget. Go through all widgets.
      If it's not there either then have a look at the Theme Options, sometimes they can be found in there as well.
      Tried all of those, it's nowhere to be found. Not under menus, not in widget, no theme options.

      The closest thing I can find is a file containing these code, is this the one ?

      =======
      function displayMainMenu() {
      $divider = '<li class="menu_gap"></li>';
      $pages = get_pages();
      $display_menu = "<ul class='menu_navigation'>";
      $display_menu .= '<li><a href="'. get_bloginfo('url') .'" title="Home">Home</a></li>';
      $display_menu .= $divider;
      $counter = count($pages);
      $inc = 1;
      foreach($pages as $page) {
      $display_menu .= '<li><a href="'. get_page_link($page->ID) .'" title="'. $page->post_title .'">'.$page->post_title.'</a></li>';
      =======

      Thanks...
      {{ DiscussionBoard.errors[6297899].message }}
  • Profile picture of the author Spencer Jones
    any wordpress / php experts in here, who can shed some light in to this situation ?
    {{ DiscussionBoard.errors[6298251].message }}
  • Profile picture of the author pjCheviot
    Banned
    In your Admin Panel under Appearance -> Menus - are there no Menus set up in there?
    {{ DiscussionBoard.errors[6298450].message }}
  • Profile picture of the author failideas
    that code seems to get all the pages you have, didn't you create a post instead of a page?

    you can add it manually the code there

    =======
    function displayMainMenu() {
    $divider = '<li class="menu_gap"></li>';
    $pages = get_pages();
    $display_menu = "<ul class='menu_navigation'>";
    $display_menu .= '<li><a href="'. get_bloginfo('url') .'" title="Home">Home</a></li>';
    $display_menu .= $divider;
    $display_menu .= '<li><a href="link_to_your_page" title="Title">title</a></li>';
    $display_menu .= $divider;

    $counter = count($pages);
    $inc = 1;
    foreach($pages as $page) {
    $display_menu .= '<li><a href="'. get_page_link($page->ID) .'" title="'. $page->post_title .'">'.$page->post_title.'</a></li>';

    there's more code here, right?
    =======

    this will show after the home button,

    if you paste all code we can help put it at the end.
    Signature
    Dental WordPress Theme - Dentist WP Theme - Lawyer WordPress Theme

    ++ Theme Release News and Promotions > submit here
    Affiliates - wanna make good money. Subscribe here Affiliates List
    {{ DiscussionBoard.errors[6298507].message }}
    • Profile picture of the author Spencer Jones
      Originally Posted by failideas View Post

      that code seems to get all the pages you have, didn't you create a post instead of a page?

      you can add it manually the code there

      =======
      function displayMainMenu() {
      = '<li class="menu_gap"></li>';
      = get_pages();
      = "<ul class='menu_navigation'>";
      .= '<li><a href="'. get_bloginfo('url') .'" title="Home">Home</a></li>';
      .= ;
      .= '<li><a href="link_to_your_page" title="Title">title</a></li>';
      .= ;

      = count();
      = 1;
      foreach( as ) {
      .= '<li><a href="'. get_page_link() .'" title="'. .'">'..'</a></li>';

      there's more code here, right?
      =======

      this will show after the home button,

      if you paste all code we can help put it at the end.
      Thank you so.... much... That seems to be working.

      I added a videos tab, but the problem is that the resources tab seems to be pushed to the bottom. If you scroll down from home, you can see that the resources tab is hiding below. What can be done about it ?

      Thank you once again...
      Dr.Spencer Jones
      {{ DiscussionBoard.errors[6298671].message }}
  • Profile picture of the author Istvan Horvath
    1. Get a theme from a decent designer that does NOT use tables for design! That was in the 90's when bored housewives were making site on geocities

    2. Tell the idiot to change the width of that table element where your Page links are displayed: presently it is a fixed width (430px) and cannot fit more Pages...

    P.S. to all: take a look at the code of the site before posting "advice" - it helps to avoid making a full of yourself!
    Signature

    {{ DiscussionBoard.errors[6300979].message }}
  • Profile picture of the author aeboi80
    I'm glad you got it figured out. I was about to say the same thing as Istvan. Your theme has been designed by someone either a long time ago or they simply didn't know what they were doing. Most modern themes are using the wordpres menu system which has been around since version 3.0

    In the future you should look for themes with that type of menu.
    {{ DiscussionBoard.errors[6301272].message }}
  • Profile picture of the author failideas
    glad it worked
    Signature
    Dental WordPress Theme - Dentist WP Theme - Lawyer WordPress Theme

    ++ Theme Release News and Promotions > submit here
    Affiliates - wanna make good money. Subscribe here Affiliates List
    {{ DiscussionBoard.errors[6302060].message }}

Trending Topics