我无法将超级鱼菜单加载到 Wordpress 中!我相信我已将 js 和 css 正确编码到标题中,并正确修改了 wp_menu。但它会使菜单消失!请问有人可以看看我的代码和帮助吗?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<meta name="keywords" content="Holiday, free CSS template, clean, neat, aqua, white, templatemo" />
<meta name="description" content="Holiday is a clean and neat free CSS template using aqua and white colors." />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8"></script>
<!-- Include jQuery -->
<?php wp_enqueue_script('jquery'); ?>
<script src="<?php bloginfo("template_url"); ?>/js/superfish.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$("ul.sf-menu").superfish();
});
</script>
<?php wp_head(); ?>
这是我的 wordpress 菜单调用
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'sf-menu', ) ); ?>
回应表示赞赏。感谢人们!
柯斯蒂