What am I doing wrong here? I just need one stinkin' link to drop down with three additional links and this is simply not working. I can not do a standard CSS menu because I am editing an existing theme template that must retain it's original setup. This is why I am try to just edit this one link using this method as opposed to redoing the whole menu.
Tutorial Link
Code:
<?php
$url = explode('/', $_SERVER['REQUEST_URI']);
$section = $url[1] ? $url[1] : 'home';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php the_title(); ?></title>
<link rel="stylesheet" href="<?php echo home_url(); ?>/wp-content/themes/blueleaf-tsa/style.css" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="http://use.typekit.com/mel0fdp.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script src="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/js/jquery.validate.min.js"></script>
<script src="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/js/application.js"></script>
</head>
<link rel="stylesheet" type="text/css" href="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/css/anylinkmenu.css" />
<script type="text/javascript" src="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/js/menucontents.js"></script>
<script type="text/javascript" src="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/js/anylinkmenu.js"></script>
<script type="text/javascript">
anylinkmenu.init("menuanchorclass")
</script>
<body>
<div id="header">
<div class="sitewidth">
<div id="right">
<div id="secondary-nav">
Already have an account?
<a href="https://secure.blueleaf.com/signin">Sign in</a>
</div>
<div id="primary-nav">
<a href="<?php echo home_url(); ?>/"> Home</a>
<a href="<?php echo home_url(); ?>/about/">About</a>
<a href="<?php echo home_url(); ?>/advisors/"><span class="for">for</span>Advisors</a>
<a href="<?php echo home_url(); ?>/blog" class="menuanchorclass" rel="anylinkmenu1"> Blog</a>
</div>
</div>
<div id="logo">
<h1><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
</div>
</div> <!--END SITE WIDTH-->
</div> <!--END HEADER-->
Quote:
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} //First menu variable. Make sure "anylinkmenu1" is a unique name!
anylinkmenu1.items=[
["The Scalable Advisor<br/><small>Helping financial advisors grow their business</small>", "#"],
["Savings & Interest<br /><small>Helping you make the most of your money</small>", "#"],
["Blueleaf Update<br /><small>The latest on the company and the product</small>", "#"]//no comma following last entry!
]
|
|