• Resolved ndaustin

    (@ndaustin)


    I would like to edit the menu on my blog site Buried Head to replicate the menu on my main site index page Buried Head. In particular I would like the menu item “HOME” to point to the main index page rather than the blog page as it does now, and I would also like to add menu items to point to the various main site pages. The main site uses the same style template as the blog site, though it is not part of the wordpress installation, but is constructed using it’s own html and css, though of course it is located on the same server as the blog.

    Is there an easy way of achieving this or do I have to edit the php of the wordpress blog? If I have to edit php, where are the references to the menu items located? I have looked at all the php but cannot see any obvious references. I do not understand php.

    Any clues would be most welcome.

    Thanks,

    Norman Austin

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ndaustin

    (@ndaustin)

    I would like to edit the menu on my blog site Buried Head to replicate the menu on my main site index page Buried Head. In particular I would like the menu item “HOME” to point to the main index page rather than the blog page as it does now, and I would also like to add menu items to point to the various main site pages. The main site uses the same style template as the blog site, though it is not part of the wordpress installation, but is constructed using it’s own html and css, though of course it is located on the same server as the blog.

    Is there an easy way of achieving this or do I have to edit the php of the wordpress blog? If I have to edit php, where are the references to the menu items located? I have looked at all the php but cannot see any obvious references. I do not understand php.

    And, is it easy to insert a logo to the left of the blog site main title? On the main site index page I have a (logo) picture of a doll with it’s head buried in the earth, and I would like to be able to add that logo to the top of the wordpress blog page. If you click on my links above then you’ll see what I mean.

    Any clues would be most welcome.

    Thanks,

    Norman Austin

    if the menu from the main website has the fixed number of menu items, you could just program the same thing fixed into the wordpress page.

    instead of:

    <div id="menu">
       <ul>
       <?php wp_list_pages('title_li=' ); ?>
       </ul>
    </div>

    put the fixed menu list:

    <div id="menu">
       <ul>
    	<li"><a href="https://www.buriedhead.com/">Home</a></li>
    	<li class="current_page_item"><a href="https://www.buriedhead.com/blog" target="_blank">Blog</a></li>
    	<li><a href="mundopics.html">Photos</a></li>
    	<li><a href="bandbiogs.html">About</a></li>
    	<li><a href="temp_contact_page.html">Contact</a></li>
       </ul>
    </div>

    if the blog page has to have more page links in the menu, it’s getting a bit more complicated – let me know ??

    Thread Starter ndaustin

    (@ndaustin)

    Brilliant… thanks again for your help.

    I’ve had to modify the files slightly – including full URL paths in links, stopping the blog page (when clicking BLOG in the menu) from re-opening in a new window (thanks to your previous advice I knew what to do), and I also modified the CSS so that the menu item “BLOG” would not change colour on mouse-over.

    I have still to find how to put the logo (doll) picture to the left of the title in the header plus add a bit of padding to bring it inline with the main index page, and I’d also like to know how to make the menu tab read “buried head blog” The menu also needs a bit of padding to move it to the right slightly.

    But unless you are totally bored, I should be able to work that out, which at the same time is making me more familiar with CSS, PHP and HTML.

    Caio.

    Norman

    Hi

    I hope you can help me.

    I have the same problem and I don’t know anything about php, so I am sad to say, I simply does not understand the answer.

    Where and in which file do I modify this? I haven’t been able to find the lines, so I am not sure I have a fix menu list.

    Thanks,
    Bent

    @tinaogbent
    please start a new thread and give details, such as your theme, and a link to your site might also help.
    here, you are interrupting the exchange.

    one tip: the horizontal navigation is most often in header.php.
    and all themes are slightly different.

    @ndaustin
    the doll picture – in header.php
    insert the image code
    <img src="https://buriedhead.com/images/doll avatar.jpg" width="50" height="59" alt="HOME" />&nbsp;

    at the place you might guess from the following:

    <div id="logo">
    		<h1><a href="<?php ....?>"><img src="https://buriedhead.com/images/doll avatar.jpg" width="50" height="59" alt="HOME" />&nbsp;<?php bloginfo('name'); ?></a></h1>

    not quite sure what you mean with

    I’d also like to know how to make the menu tab read “buried head blog”

    on mouse-over like a tooltip?
    for that you could use title in the link tag:
    <li class="current_page_item"><a href="#" title="buried head blog">Blog</a></li>

    or on the actual tab? then just change the text:
    <li class="current_page_item"><a href="#" >buried head blog</a></li>

    enjoy the padding ??

    Thread Starter ndaustin

    (@ndaustin)

    I probably meant mouse-over for showing the menu “buried head blog”, but that was a couple of weeks ago, and my brain is now fried.

    I’m doing the same stuff to a different website now and thought I’d check back to see if you had responded to my logo pic question, which in fact you have… so….

    Once again Alchymyth… Many thanks for all your help.

    Ciao,

    Norman

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘altering the main menu’ is closed to new replies.