WordPress.org

Forums

[resolved] wp as CMS - nav using PVII (5 posts)

  1. micharo
    Member
    Posted 8 years ago #

    Hi,

    I am using wp as a CMS
    I try to use PVII (project seven) Pop Menu Magic for the navigation.

    I added the nav into the header.php of the default theme

    but this gives me only the text. It seems it cannot read the js and or the css.

    Any idea?

    micharo

    <!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" <?php language_attributes(); ?>>
    
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title>
    <?php bloginfo('name'); ?>
    <?php if ( is_single() ) { ?>
    &raquo; Blog Archive
    <?php } ?>
    <?php wp_title(); ?>
    </title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <!-- leave this for stats -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <style type="text/css" media="screen">
    
    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !$withcomments && !is_single() ) {
    ?>
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>
    
    </style>
    <?php wp_head(); ?>
    <script type="text/javascript" src="p7pm/p7popmenu.js"></script>
    <style type="text/css" media="screen">
    <!--
    @import url("p7pm/p7pmh0.css");
    -->
    </style>
    </head>
    <body onload="P7_initPM(1,0,1,-20,10)">
    <div id="page">
    
    <div id="header">
    	<div id="headerimg">
    	  <ul id="p7PMnav">
            <li><a href="#">Section 1</a></li>
    	    <li><a href="#" class="p7PMtrg">Section 2</a>
    	        <ul>
                  <li><a href="#">Link 2.1</a></li>
    	          <li><a href="#" class="p7PMtrg">Link 2.2</a>
    	              <ul>
                        <li><a href="#">Link 2.2.1</a></li>
    	                <li><a href="#">Link 2.2.2</a></li>
    	                <li><a href="#">Link 2.2.3</a></li>
                    </ul>
                  </li>
    	          <li><a href="#">Link 2.3</a></li>
              </ul>
            </li>
    	    <li><a href="#" class="p7PMtrg">Section 3</a>
    	        <ul>
                  <li><a href="#">Link 3.1</a></li>
    	          <li><a href="#">Link 3.2</a></li>
    	          <li><a href="#">Link 3.3</a></li>
              </ul>
            </li>
    	    <li><a href="#">Section 4</a></li>
    	    <!--[if lte IE 6]><style>#p7PMnav a{height:1em;}#p7PMnav li{height:1em;}#p7PMnav ul li{float:left;clear:both;width:100%}</style><![endif]-->
    	    <!--[if IE 6]><style>#p7PMnav ul li{clear:none;}</style><![endif]-->
    	    <!--[if IE 7]><style>#p7PMnav a{zoom:100%;}#p7PMnav ul li{float:left;clear:both;width:100%;}</style><![endif]-->
          </ul>
    	  <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<div class="description"><?php bloginfo('description'); ?></div>
      </div>
    </div>
    <hr />
  2. micharo
    Member
    Posted 8 years ago #

    Hi,

    Here is the URL ato see the result

    http://www.rohnerdesign.com/wp_213_CMS/

    Micharo

  3. rudolf45
    Member
    Posted 8 years ago #

    It seems it cannot read the js and or the css.

    Or maybe you cannot write a correct path!
    There is nothing there:

    http://www.rohnerdesign.com/wp_213_CMS/p7pm/p7pmh0.css

  4. micharo
    Member
    Posted 8 years ago #

    Thanks for the hint:

    In the header.php I used:

    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/p7pm/p7popmenu.js"></script>

    and

    @import url("<?php bloginfo('stylesheet_directory'); ?>/p7pm/p7pmh0.css");

    Now it works!

    Micharo

  5. tinem
    Member
    Posted 7 years ago #

    I can't see that the site http://www.rohnerdesign.com/wp_213_CMS/ is functioning or is there another link which is functioning?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags