Viewing 2 replies - 1 through 2 (of 2 total)
  • First, we “frown” on long code submitted here. If we have a link to your site, we can see the CSS or if no site is available, please post a link to a pastebin site in the future.

    There are a lot of resources on the Internet that will help you fix this. On the WordPress Codex (the online manual) we have help and resources at Creating Horizontal Menus and Dynamic_Menu_Highlighting that will take you through the process step by step.

    With the really long file names, there is a greater chance of messing things up by a slipped letter, so I recommend that you 1) change these to relative links not absolute (/images/button1.gif) and 2) change the names to something very simple to make the process easier. 3) If you are changing from HTML to PHP, then be sure the pages linked have PHP extensions. If not, then leave it.

    The two articles linked will help you through the very simple process of making this happen.

    Thread Starter blunted

    (@blunted)

    Well thanks for warning me about posting code – I saw code posted elsewhere in the forum and thought it was OK, plus there’s no mention of it below the reply window, where it tells you, “Put code in between backticks” which I did. There was no way to know, so please forgive me.

    I looked through all the codex and several other resources before posting here, and it didn’t help. The tutorials are mainly on the subject of text rollovers where the colour of the background changes, rather than the background image. I wonder if any PHP gurus could help me link to a separate stylesheet, in the head, instead of me trying to incorporate the changes in the existing stylesheet?

    As for the image names and target pages – these will change if and when I can get this thing working. For now, I’m using stuff that already exists and works, rather than reinventing the wheel and adding another variable, which could possibly confuse the issue.

    Thanks for trying, anyway 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Button array – image rollovers’ is closed to new replies.