WordPress.org

Ready to get started?Download WordPress

Forums

Header menu (5 posts)

  1. dragob
    Member
    Posted 6 years ago #

    hay eweryone

    i'm trying t obuild webpage with wordpress and have some problem, i'm using soccer theme on http://www.marijanpusnik.com/page/ and the theme already had some kind of menu in Header as you can see. but there is working only home button. I would like to have this menu like Pages menu, same funkcionality, but i don't have a clue how to do that. I was trying to find something in the header.php file and find this

    <body>
    <div id="page">
    <div id="header">
    <div id="headerimg"><?php include (TEMPLATEPATH . '/searchform.php'); ?>
    </div>
    <ul class="menu">

  2. Contact
  3. |
  4. About
  5. |
  6. Videos
  7. |
  8. Clubs
  9. |
  10. Galleries
  11. |
  12. Links
  13. |
  14. ">Home
  15. </div>

    <div class="topgrad botgrad">
    <img alt="pagebg" class="display" src="<?php bloginfo('stylesheet_directory'); ?>/images/pagebg.jpg" />

    what should i change, can enyone help me???

    thx

  • buddha trance
    Member
    Posted 6 years ago #

    dragob,

    In header.php of your theme, you should have
    <?php wp_list_pages; ?> in the <ul class="menu"> where you looked.

    If so, the pages will appear in the menu tabs, once you create them and publish them.
    Did you already publish the contact, about, etc. pages that you mention?

  • dragob
    Member
    Posted 6 years ago #

    No I haven't manage to publish nothing jet, I have tried vith
    <?php wp_list_pages; ?> in the <ul class="menu">, and it helpet but the next problem is that there is no Space betweeen pages like so
    home | gallery | ... and so on, ewerything is squized together

    what should I do

    thx

  • dragob
    Member
    Posted 6 years ago #

    Now I vill leave Pages menu in the side bar, but i would like to have a link to the NexGen gallery in header menu...
    for home button there is code like:

    /*

  • ">Home
  • */

    what should I put afer href="#"... for the gallery:

    /*

  • Galerija
  • */

  • buddha trance
    Member
    Posted 6 years ago #

    On your sidebar you have Galerija under page id=13. That is the page where you will put your gallery, then publish it, so the actual url will be marijanpusnik.com/page/galerija

    Pages will appear on the menu bar only after you publish them, and the link is created automatically for any page created within WordPress (you need to hard code only external links).

    To create space between the tabs, you have to look at your css in the style sheet.

    In style.css of your theme, change settings for the menu in

    .menu li {
    	float:right;
    	height:18px;
    	margin:0;
    	padding-top:4px;
    	padding-left:10px;
    	text-align:center;
    	color:#fff;
    	}

    I changed the left padding to 10px and now there is more space. Play with it.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.