Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. menu won't show up after messing with header code

menu won't show up after messing with header code

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 44 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pgroth
    wrote on last edited by
    #1

    Hi there,
    I made the terrible mistake and tried to paste the google analytics code in the theme file editor / header.php code.
    I removed it immediately but now it seems like I damaged the code, because my menu won't show up...
    the website is philippgroth.com
    and the code in the header.php right now looks like this:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <?php
    $title = get_bloginfo('name');
    if(!is_front_page()){
    $sep = get_option( 'misc_options_title_separator', '—' );
    $title .= ' '.$sep.' '.trim(wp_title('',false));
    }
    ?>

    <title><?php echo $title; ?></title>

    <?php wp_head();

    Frontend::get_meta();
    Frontend::get_custom_head_content();
    Frontend::get_max_width_option_css();
    Frontend::get_custom_lay_css();

    $theme = wp_get_theme();
    echo '<!-- Thank you for using Lay Theme '.$theme->get( 'Version' ).' by 100k Studio -->';
    echo '<!-- Fix for flash of unstyled content on Chrome -->';
    echo '<style>.sitetitle, .laynav, .project-arrow, .mobile-title{visibility:hidden;}</style>';
    ?>
    </head>

    <body <?php body_class(); ?> <?php echo Frontend::get_body_data(); ?>>
    <?php

    do_action('laytheme_after_bodytag');

    Thank you so much,
    Philipp

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear Philipp

      @pgroth

      No worries i'm sure all will work out! 🌝

      Because all your page content and data is stored within Wordpress data-tables on your server, you can actually delete the "theme" and re-install lay theme. > appearance > Themes >
      Your content will still exist as well as menu items etc.

      From there you will have a fresh header.
      Do you have access to your Lay Theme files anymore?

      In the future i would suggest adding Google Analytics segment into your website via > Lay Options > Custom CSS & HTML > Custom <head> content, rather than directly via the theme editor 👍

      Screen Shot 2022-03-31 at 10.49.33 AM.png


      Best wishes Philipp & have a wonderful day ✨
      Richard
      P 1 Reply Last reply
      0
      • RichardR Richard

        Dear Philipp

        @pgroth

        No worries i'm sure all will work out! 🌝

        Because all your page content and data is stored within Wordpress data-tables on your server, you can actually delete the "theme" and re-install lay theme. > appearance > Themes >
        Your content will still exist as well as menu items etc.

        From there you will have a fresh header.
        Do you have access to your Lay Theme files anymore?

        In the future i would suggest adding Google Analytics segment into your website via > Lay Options > Custom CSS & HTML > Custom <head> content, rather than directly via the theme editor 👍

        Screen Shot 2022-03-31 at 10.49.33 AM.png


        Best wishes Philipp & have a wonderful day ✨
        Richard
        P Offline
        P Offline
        pgroth
        wrote on last edited by
        #3

        @Richard
        Dear Richard,
        can't thank you enough.
        That worked out perfectly.

        All the best from Chicago,
        Philipp

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #4
          @pgroth

          Great to hear all is working Philipp, have a wonderful weekend! ⚡️

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          I also code custom websites or custom Lay features.
          💿 Email me here: 💿
          info@laytheme.com

          Before you post:
          1. When using a WordPress Cache plugin, disable it or clear your cache.
          2. Update Lay Theme and all Lay Theme Addons
          3. Disable all Plugins
          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

          This often solves issues you might run into

          When you post:
          1. Post a link to where the problem is
          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
          Online Users
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search