Header Required!

Personally i think the last menu is awful and i'm not a fan of the verical one, just not keen on the way it works, but that's just me...

If you want to use one of those, it's fine, just post what needs doing here and someone will help you along, myself or another...

I think it might be worth deciding to drop either the right or top menu though, both provide the same links to the same pages, why have 2 menus on the same page doing the same thing?
 
Yeah I think you are right there.

I would drop the pages from the right and side and place the menu in the header.

Would the menu be dynamic or would I need to add each new page I create into the menu strucutre manually? For me the first one I listed looks the best solution.

I would like headings for:

Home | Piers | About | Contact Us | Links | RSS

Home - Should redirect back to www.the-pier.co.uk
Piers - Should then have a menu of - Pier Articles | Weather Information | Travel Information | Currency Convertor | The Pier - Homewares
About - Link to the About Page
Contact Us - To the Contact page
RSS - To the RSS Feed page

Does that sound complicated?
 
Sounds easy enough...

Regarding being dynamic, that really depends on how your site is coded.....

Are the links currently dynamically created? If they are then i'll just need to see the existing code.

Off out shortly, so i'll see what you got when i get back...
 
If you'd like to plonk a copy of your website (personal info where applicable removed) onto your test site then email me the details for the test site i'll work on the menu for you....

Or if you could zip the files that need work, host the zip somewhere then email me a private link to the file. That would be better ideally as i'll work on it locally anyway (quicker then FTP).

Any case the test site details would be helpful so i can upload the changes for your viewing... ;)
 
So which menu are we decided upon then? :)

There's me with the editor open infront of me thinking right i'll get cracking.... then i realised you never said which menu you want used...

Admittedly wordpress isn't something i've used, but the syntax looks straight-forward enough...
 
Ok i'm gonna run a few tests locally then have a pop on the wordpress install.

Looking at the template files i can't see how we could make the links dynamic, but that really depends on your definition of dynamic.

If you want current page shown, you'll need some custom code for checking which page wordpress is showing.... not something i know, but is definately possible with HTML or PHP, the problem for me is if there's an easy way to do that in Wordpress, and if not is it flexible enough to allow to write something to do it without having to edit all over the place.

Usually if i'm wanting to show which page is active in a menu i'd give the body of each page something unique that i can identify in the CSS, then create selectors in the CSS to handle the active page and non-active page, adding each new page in just the stylesheet where needed, but i'd combine that with some PHP to....

I don't want to spend hours on a simple menu, so i'll focus on working the menu, then if there's an easy way i'll add the active page in to....

EDIT:: Looks like you have active page code there, i think it can be carried over with a few small adjustments.... we'll see what happens...
 
Last edited:
Can you upload the files for the nav menu onto the server for me please, just let me know where you put them (ideally in the template's folder where the other images are), the menu looks kinda well, crap without the images.... lol...

Or am i missing an image uploader in wordpress that should be obvious?

I'm still working on it, just wanted to get it on the page and functioning.... which it is doing... :D
 
Thanks, though proberly don't need the folders that came with the menu, just the images....

Leave it for now though, you can always move them later and update the image path...

EDIT:: Ok the links are generated dynamically using the wordpress code from the old menu....

Code:
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>

If you want the Piers menu to get the links from Wordpress but only the pier links you'll need to find, (or if anyone here can advise?) a way to sort your pages into groups and change that line above to grab pages for said group.... group/category whatever, if your pages are already sorted in cat/group fashion it's likely a matter of just adjusting the above line...

I'll focus on getting the menu fully working including working links then worry about the finer details.

EDIT 2 ::

Looks like you need...
Code:
[/COLOR]   [COLOR=White][B]<?php wp_list_bookmarks('title_li=&categorize=0'); ?>[/B]


for handling generation of page links.....

For this to work in the menu you'll need to sort you pages into bookmark categories in wordpress, you then create a custom wp_list_boomark string for grabbing the pages you want....

Got curious, so i had a quick google about, seems the old code...

wp_list_pages

Is limited in that it can only display all Wordpress pages...

Any wordpress boffs here? Any ideas on the wordpress string?
 
Last edited:
nvm, got it working, you'll just need to move your pier pages into 'posts' so you can categorize them, then the query can be adjusted to grab the links for pages in the category....

For the moment, it's grabbing news.... :) Until the piers page are in a category...
 
Forget that about moving pages....

Wordpress has it's own links function, that's where the wp_list_bookmarks grabs it's links from. So it's a matter of just creating a series of links in the admin section, and code the menu to grab from the category...

Annoying in the sense that you have to create new links each time, but i don't think this function can create links based on existing pages... you will need to create the links, and the menu will update itself. Just remember if you add any Piers page to create a link for it, in the admin section.. Links > Add New > fill in the boxes, and tick the Piers Category. (You'll need to create the piers category in the links section)

It's now working based on links in the wordpress category called piers.... See my example link to see how it's done, then take a look at the theme header.php to see how the wordpress string is done (if you're interested).

I can do this for each part of the menu if you like? That way you only ever have to create a link, select a category, then it's added into the menu... :D Would that be useful?
 
Last edited:
Looking good that. Shouldn't be too much hassle to do that link thing.

I noticed on the drop down the highlight doesn't run the width of the menu.

Also how easy will it be to change the menu header colour and the menu drop down colours?
 
Looking good that. Shouldn't be too much hassle to do that link thing.

I noticed on the drop down the highlight doesn't run the width of the menu.

Also how easy will it be to change the menu header colour and the menu drop down colours?

Dead easy, the width is something that will take 2 minutes in the CSS, i'm just getting the guts of the menu functioning first...

Do you want sub sub-menus?

As in for example the Piers menu it's currently like...

Piers
-- Pier 1
-- Pier 2

Do you want another sub-menu inside....

Piers
-- Pier 1
-- Pier 2
-- Sub menu
----------- sub link 1
----------- sub link 2

etc....

It can be done later, but i'd imagine you'll need some assistance again, so i'll ask now and put any extra sub levels you need and give them the same treatment, in that they can pull links from a link category...
 
Back
Top Bottom