ThemeShaper Forums » Thematic

Adding a link to the dropdown submenu

(4 posts)
  • Started 4 years ago by dsn
  • Latest reply from dsn
  • This topic is resolved
  1. Hi

    Im quit new to wordpress and thematic.

    I created a bookmark/link in wordpress admin panel.

    I found out with wp_list_bookmarks() I can retrieve my links.

    But can someone suggest a way to add this in dropdown submenu?

    For example I have a link "contact". When you hover it a dropdown menu shows

    "Send us an email"
    "Forum"

    When the visitor clicks Forum it should open a new window, and go to the linked page.

    Posted 4 years ago #
  2. Hi

    this is what I did to resolve it, I bet its not the recommended way but I'll post it anyways!

    1)noted my bookmark ID
    1)went to wp-include/classes.php.
    2)edited Walker_page class.
    3)after line 1175($output .= *********)
    4)added the following

    if($page->ID == 'bookmarkID')
    		{
    		$b = get_bookmark('8', ARRAY_A);
    		$forum = '
    <li><a rel="'
    . $b['link_rel']
    . '" href="'
    . $b['link_url']
    . '" title="'
    . $b['link_description']
    . '">'
    . $b['$link_name']
    . '</a></li>
    ';
    		$output .= $forum;
    		}
    Posted 4 years ago #
  3. You should check out the Page Links To Plugin. I don't recommend hacking the WordPress core.

    Posted 4 years ago #
  4. That looks like a better solution, thanks!

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.