Mobile menu broken with ACF Custom Post Type

Hello,

We used ACF Pro to create a custom post type an then CPT UI to create a taxonomy for our business directory.

Everything works perfectly except the mobile menu.

At the homepage, the mobile menu works fine. http://svcta.lainternet.biz/

Within the directory pages, the mobile menu will not expand.

http://svcta.lainternet.biz/directory/
http://svcta.lainternet.biz/directory/hotels/

It work fine on the profile listing page. http://svcta.lainternet.biz/directory/best-western/hotels/

And it works fine on our Blog page http://svcta.lainternet.biz/news/

How can we fix this so that it works reliable on all pages?

Thanks,

Micah

Hello There,

Thanks for writing in!

You are experiencing the issue because the footer is not loaded on the page. Your custom template is using this:

<?php 
// =============================================================================
// /PRO-CHILD/ARCHIVE-HOTEL.PHP
// -----------------------------------------------------------------------------
// Hotel Single Page Output for X-Theme Pro Renew
// Author: Micah Kritzman
// Organization: Los Angeles Internet Marketing Agnecy
// Contact: [email protected]
// Built for Simi Valley Chamber & Tourism Alliance
// =============================================================================
?>


<?php get_header(); ?>

  <div class="x-container max width main">

    <div class="offset cf">
      <div class="<?php x_main_content_class(); ?>" role="main">
             <h1>Simi Valley Directory - Archive - Directory</h1>
		  
		  
  <?php if (have_posts()) : ?>
   <?php while (have_posts()) : the_post(); ?>
     <div class="post">
     <h2 id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
     <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
      </div>
    <?php endwhile; ?>
<div class="navigation">
<div class="alignleft">
<?php posts_nav_link('','','&laquo; Previous Entries') ?>
</div>
<div class="alignright">
<?php posts_nav_link('','Next Entries &raquo;','') ?>
</div>
  </div>
<?php else : ?>
  <h2 class="center">Not Found</h2>
 <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
  <?php endif; ?>



      </div>

      <?php get_sidebar(); ?>

    </div>
  </div>
		  
<?php the_field('hotel_name'); ?>
<?php the_field('address'); ?>

It needs to have <?php get_footer(); ?> at the very end to load all the scripts for the theme.

Hope this briefly explains the cause of this issue.

Oh yikes, sorry for wasting your time on a simple oversight.

I added the footer code and the Mobile Menu is now working properly.

Micah

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.