Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Menu, PHP, and Problems

Featured Replies

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!

  • Author

Haven't been able to fix it... I've googled php inside php but no luck

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.