Content Management solutions using Drupal, Wordpress, and Magento
Zack Design Zack Design

Forum

Current User: Guest
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Add Home Page

Add a New Topic Reply to Post
UserPost

10:38 pm
August 19, 2008


Kelly

Guest

I've successfully installed and set up the menubar and it looks great with my .css modifications.  However I am stumped on one thing. 

How do I go about adding the home page to the menubar?  I read on here that there are instructions on how to do it in the readme included with the plugin, but I can't seem to find anything. 

Thanks in advance for your help!  This is a great plugin!

7:53 pm
August 20, 2008


admin

Admin

posts 116

Thanks Kelly, I'm glad you like it!

To add the home page to the menu bar you need to do some modifications like so:

<?php wp_css_dropdownmenu(0, '<div class="menu"><ul><li><a href="your link">Home</a><!–[if IE 7]><!–></a><!–<![endif]–></li>', '</ul></div>'); ?>

This way you can insert your own link in and then the code will run the rest.

3:38 pm
September 7, 2008


Tadhg C

Guest

I think you might need to add "+1" to this line in the css_dropdownmenu_css() function.  I'm not sure.  It works for me now anyway… Before I adding the plus one, the last menu item was getting pushed onto a line below the menu.

        $pages = sizeof(get_pages_from_DB(0))+1;

8:06 pm
September 10, 2008


admin

Admin

posts 116

OK I'll take a look, ta.

4:56 pm
November 4, 2008


coolbreeze3

Guest

OK…. I have everything pretty much done…. awesome plugin….but still cannot understand how to add this code to create the "Home" page link???? Please avise on where I need to add/modify this…

Jason

8:37 pm
November 7, 2008


Rok

Guest

Hej Isaac!

First, let me be one of many to thank you for this wonderful plugin!

I added the following code to include the home page into the menu, as you sugested. I added the +1 in the right place so that everything keeps in one line.

<?php wp_css_dropdownmenu(0, '<div class="menu"><ul><li><a href="http://rbgkamnik.awardspace.com">Domov</a><!–[if IE 7]><!–></a><!–<![endif]–></li>', '</ul></div>'); ?>

There's one thing that bothers me a bit. I'd like my page to be valid xhtml and since i've posted this, I get some errors regarding to the stuff with IE 7…

Is there an obvious thing I could do to the code to fix that?

Much appreciated..

Rok

12:47 pm
December 1, 2008


m4rk

Guest

admin said:

Thanks Kelly, I'm glad you like it!

To add the home page to the menu bar you need to do some modifications like so:

<?php wp_css_dropdownmenu(0, '<div class=”menu”><ul><li><a href=”your link”>Home</a><!–[if IE 7]><!–></a><!–<![endif]–></li>', '</ul></div>'); ?>

This way you can insert your own link in and then the code will run the rest.


So I try that and it turns the menu into a bullet text list. Any ideas would really help. Client breathing down my neck.

1:41 pm
December 2, 2008


Bruce

Guest

I have tried this code and it makes the layout of the dropmenu work perfectly. However, the HOME link does not go to the Home page.

Here is the relevant code I used:

            <?php wp_css_dropdownmenu(0, '<div class=”menu”><ul><li><a href=”www.fbcbelen.org”>Home</a><!–[if IE 7]><!–></a><!–<![endif]–></li>', '</ul></div>'); ?>

The destination is http://fbcbelen.org/resources/"www.fbcbelen.org" – rather than the root.

I have tried several variations of the url without success.

Thanks for this plugin. It is really a nice piece of code. And thanks for any suggestions on how to fix my problem. I have obviously coded something incorrectly.

4:31 pm
December 2, 2008


Bruce

Guest

I think I have a solution:

<?php wp_css_dropdownmenu(0, '<div class="menu"><ul><li><a href="http://www.fbcbelen.org">Home</a><!–[if IE 7]><!–></a><!–<![endif]–></li>', '</ul></div>'); ?>

I finally just chaned the quotes in my notepad and that worked.

Please take a look at the Nav if you have time.

Thanks again for a great plugin.

Bruce

http://www.fbcbelen.org

http://www.faithandfacts.com

3:07 pm
February 23, 2009


KJA

Guest

I'm having the same problem as m4rk.  When I insert the code to add the "home" page to my menu, I simply end up with a menu "tree" showing all available links and the drop-down menu ceases to exist/work.  I'm assuming the code provided above is to be inserted into the header.php file?  If not, please clarify.  Thanks!

Reply to Post

Reply to Topic:
Add Home Page

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 2
   


About the Zack Design Forum

Most Users Ever Online: 89

Currently Online:
9 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 4
Forums: 10
Topics: 164
Posts: 435

Membership:

There have been 199 Guests

There are 2 Admins

Top Posters:

Administrators: admin (116 Posts), jporter (0 Posts)



Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Twitter
  • Reddit

Comments are closed.