Back To Start Of Archive
Taken From The Forum: Menu Images
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:24
Image Path Issue Within Wordpress - PLEASE help!
Poster: rebecca
Dated: Monday January 7 2008 - 20:55:18 GMT
Hello all.
The menu I am working on is the horizontal all image mouseover, dropdown menu. ( http://www.milonic.com/download.php?sampleid=18 ) and I am using it within a Wordpress blog.
You can see my blog is here: http://www.treasurehiding.com/ljurban
You can see at the top right of the page, the broken images, and if you mouse over the one that says projects.gif, you can see that it drops down. Obviously, these should all be working images that would display yet a different image on mouseover.
You can see the edits I have made to the menu_data.js here: ( http://pastebin.com/f1f81f522 )
Now. If you look in the js file, you will notice that I am trying to code the image paths using the <?php bloginfo('template_url'); ?> tag. If you are unaware with Wordpress, this tag makes it possible to change the theme without having to recode the page that it's in.
This seems to be where the problem is, because when I hard code the images instead, the menu will display properly. (But I really need to use the template_url method, as opposed to hard-coding.)
The only other changes I have made to the code are placing the javascript files into the header (see here: http://pastebin.com/f6f6170f9 ) and placing the file within the menu file where it is to display (see here: http://pastebin.com/f6beb0b99 ).
Please let me know if there is any other info I can provide, and thanks in advance for any help. I REALLY appreciate it!!
Thanks,
Rebecca
Re: Image Path Issue Within Wordpress - PLEASE help!
Poster: Andy
Dated: Tuesday January 8 2008 - 17:40:12 GMT
HI,
I'm not seeing the menu at http://www.treasurehiding.com/ljurban - If I can see what the output is I should be able to tell you why the images are not working.
-- Andy
Re: Image Path Issue Within Wordpress - PLEASE help!
Poster: John
Dated: Thursday January 10 2008 - 13:55:37 GMT
I see a menu of sorts, but it's not the Milonic menu. If that's the one you need help on I'm afraid you're in the wrong place.