August 28, 201412 yr I want to remove the menu I created and insert the WP primary menu. How do I put PHP inside PHP without breaking the install? This is what I have: <?php echo'<div id="lid"> <div class="wrapper"> <nav class="nav-bar"> <div class="nav-hold"> <div class="nav-logo"> <a href="/"><h1><img src="" border="0" alt="" /></h1></a> </div> <div class="nav-menu" id="nav"><i class="fa fa-navicon"></i></div> <ul class="nav-items"> <li><a href="/">Home</a> <li><a href="/about">About</a> <li><a href="/newsletter">Newsletter</a> <li><a href="/contact">Contact</a> <li><a href="//facebook.com" target="blank"><i class="fa fa-facebook"></i></a> <span class="nav-icon"><a href="//twitter.com" target="blank"><i class="fa fa-twitter"></i></a></span> </ul> </div> </nav> </div> </div>'; ?> I'm trying to replace the 'nav-menu' with this <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?> But I don't know how to put the PHP inside the PHP. Thanks in advance!
Create an account or sign in to comment