WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
Menus Disappeared (3 posts)

  1. scratchmeals
    Member
    Posted 1 year ago #

    I believe we use Advanced Custom Fields for our floating menus under the signs on our website (mealsfromscratch.co.uk), but since we updated to the newest version, the menus have disappeared and I can't seem to figure out how to get them back. For example, under "About" there should be more options including "Our Story", "Product", and "Promotions", but they're gone now. Almost every time I login to WordPress there's a new version and I continue to update it but the menus don't come back.

    Any way someone could assist?

    Cheers,

    Lola

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Lola

    Without seeing the backend of your website, I'm not sure what the problem is.

    What kind of fields do you have?
    Where are the fields saved to? options page, page, post...
    Can you provide any screenshots of where this menu is not appearing?
    What is the code you use to display this menu...

  3. scratchmeals
    Member
    Posted 1 year ago #

    Cheers for responding. Basically, our web designer set it up so I'm not entirely sure how he coded it or what to screencap for you.

    Basically this is a screenshot of the Advanced Custom Fields page with the one field group in it.

    This is the header code in the Editor:

    <!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 wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <style>
    <?php if (is_page('About') || mv_is_subpage('about')) :  ?>
    	.topnav li.menu-item-about a {background:url(<?php bloginfo('template_directory')?>/images/about-on.jpg) left top no-repeat;}
    <?php endif; ?>
    <?php if (is_page('Menu') || mv_is_subpage('menu')) :  ?>
    	.topnav li.menu-item-menu a {background:url(<?php bloginfo('template_directory')?>/images/menu-on.jpg) left top no-repeat;}
    <?php endif; ?>
    <?php if (is_page('Where to Buy') || mv_is_subpage('where-to-buy')) :  ?>
    	.topnav li.menu-item-where-to-buy a {background:url(<?php bloginfo('template_directory')?>/images/where-to-buy-on.jpg) left top no-repeat;}
    <?php endif; ?>
    <?php if (is_page('Michel Roux') || mv_is_subpage('michel-roux')) :  ?>
    	.topnav li.menu-item-michel-roux a {background:url(<?php bloginfo('template_directory')?>/images/michel-roux-on.jpg) left top no-repeat;}
    <?php endif; ?>
    <?php if (is_home() || is_single() || is_archive()) :  ?>
    	.topnav li.menu-item-blog a {background:url(<?php bloginfo('template_directory')?>/images/blog-on.jpg) left top no-repeat;}
    <?php endif; ?>
    <?php if (is_page('Contact') || mv_is_subpage('contact')) :  ?>
    	.topnav li.menu-item-contact a {background:url(<?php bloginfo('template_directory')?>/images/contact-on.jpg) left top no-repeat;}
    <?php endif; ?>
    </style>
    <!--<script src="<?php //bloginfo('template_directory')?>/js/menu.js" type="text/javascript"></script>-->
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    	<div id="wrapper">
        	<div id="header">
            	<div class="logo">
                <?php if (is_front_page() || is_page()) :?>
                	<h1><a href="<?php bloginfo('home'); ?>" title="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>"><img src="<?php bloginfo('template_directory')?>/images/logo.jpg" alt="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>" /></a></h1>
                <?php else : ?>
                    <a href="<?php bloginfo('home'); ?>" title="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>"><img src="<?php bloginfo('template_directory')?>/images/logo.jpg" alt="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>" /></a>
                <?php endif; ?>
                </div>
                <div class="followus"><img src="<?php bloginfo('template_directory')?>/images/follow-us.jpg" alt="Follow Us" /></div>
                <ul class="social">
                	<li><a href="http://twitter.com/#!/scratchmeals" title="Twitter" target="_blank"><img src="<?php bloginfo('template_directory')?>/images/twittericon.jpg" alt="Twitter" /></a></li>
                    <li><a href="http://www.facebook.com/mealsfromscratch" title="Facebook" target="_blank"><img src="<?php bloginfo('template_directory')?>/images/facebookicon.jpg" alt="Facebook" /></a></li>
                    <li><a href="http://feeds.feedburner.com/co/lkJv" title="Rss Feeds" target="_blank"><img src="<?php bloginfo('template_directory')?>/images/rssicon.jpg" alt="Rss Feeds" /></a></li>
                    <li><a href="http://www.youtube.com/user/mealsfromscratch" title="Youtube" target="_blank"><img src="<?php bloginfo('template_directory')?>/images/youtubeicon.jpg" alt="Youtube" /></a></li>
                </ul>
                <?php wp_nav_menu( array( 'menu' => 'Top Menu','container' => 'false','menu_class' => 'topnav',  'link_before' => '<span>' ,  'link_after' => '</span>' )); ?>
            </div><!--end header-->

    And this is a screenshot of what the menus should look like.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic