Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #882235
    VelocityWeb
    Blocked

    This has just happened and I don’t know why

    #882531
    VelocityWeb
    Blocked

    how to fix a Navigation Menu that is not displaying correctly

    #883198
    Lely
    Moderator

    Hi There,

    The theme might be corrupted. Some CSS style is not available. Try reinstalling the theme again.
    Please also remove the content of your Customizer’s JS code. It is causing some errors. When adding code inside Customizer > JS, script tag is not necessary. Remove the instance of this <script> and this </script>. Then meta name shouldn’t be inside the Customizer JS. It should be added in the header via functions.php file.

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Then copy the following code inside your child theme’s functions.php file:

    
    function custom_head_code() { ?>
    
    <meta name="msvalidate.01" content="40B7B50722A2E2C70A87B4809D88BF16" />
    <meta name="msvalidate.01" content="B9C49EB1943AA7BD26C6303AC51959DA" />
    <meta name="p:domain_verify" content="6131a81709a5be5ec0779b4faaa19e4b"/>
    
    <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=610394055768249&ev=PageView&noscript=1"/></noscript>
     
    <meta name="p:domain_verify" content="6131a81709a5be5ec0779b4faaa19e4b"/>
    <meta name="bitly-verification" content="42cb88fea74b"/>
    <meta name="norton-safeweb-site-verification" content="efg20d2txtrvc7n5dx4qxy365gm8r77juk1fk4okabeyh924venf6coyn3cguq3s8rvlywgux06e1xmgn5f08g-2c23fak38cyqy-2r4a-hjufl1v6y1ds3ll2lx11hj"/>
    <meta name="google-site-verification" content="QPkq8INL9ZVe-MBVyJXkl7OhMAWuQGuM-XuJX78nUQk"/>
    <meta name="p:domain_verify" content="6131a81709a5be5ec0779b4faaa19e4b"/>
    <meta name="google-site-verification" content="kZkQbpxx1bgGMZoeFTOwmx7mJXPhpPG1zs1P4FlU57c"/>
    <meta name="msvalidate.01" content="B9C49EB1943AA7BD26C6303AC51959DA"/>
    <meta name="google-site-verification" content="kZkQbpxx1bgGMZoeFTOwmx7mJXPhpPG1zs1P4FlU57c"/>
    
    <!-- Facebook Pixel Code -->
    <script>
    !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
    n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
    n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
    t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
    document,'script','//connect.facebook.net/en_US/fbevents.js');
    
    fbq('init', '610394055768249');
    fbq('track', "PageView");</script>
     
    <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-TLVPSZ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-TLVPSZ');</script>
    
    <?php }
    
    add_action( 'wp_head', 'custom_head_code' );

    That is the best way of implementing code on the header.
    Hope this helps.

    #883522
    VelocityWeb
    Blocked

    Thanks that worked. but when I removed the code from the JS section but I dont know how to add it back into the php file
    where do I add this code? I keep crashing the website

    #883854
    VelocityWeb
    Blocked

    I got hold of Bluehost support and they said they would not support the html code in this file?

    What am I supposed to do? Is there a plug-in I can use to input this code in?

    #884019
    Paul R
    Moderator

    Hi,

    You need to add the code in your functions.php file after this line.

    // Additional Functions
    // =============================================================================

    Thanks

    #884117
    VelocityWeb
    Blocked

    Ok that worked. Fantastic!, thanks for your help.

    #884932
    Rad
    Moderator

    You’re so much welcome!

  • <script> jQuery(function($){ $("#no-reply-882235 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>