Why does my WordPress theme header menu do not work properly in mobile version? [2020] ( wp_nav_menu() question )

First of all, I am running a wordpress website named TutsPie.com. I have developed my own wordpress theme from scratch. Actually, i am a noob, therefore, there may be a lot of errors in my theme.

Problem Point

Coming to the point, the problem i encountered is about my theme header menu. When i run my website on mobile, the menu is collapsed in a hamburger form on right side. But when i click the button to dropdown the menu, it drop downs, but do not disappear after clicking away on any place.

The menu just remain open in drop down form. Look at the screen shot below to understand it clearly.

Primary Menu Problem (wwww.tutspie.com)

wp_nav_menu()

wp_nav_menu() function is used to create the menu. so here is that code.

<section class="primary-menu" id="primaryMenu">
        <label for="toggle-1" class="toggle-menu"><ul><li></li> <li></li> <li></li></ul></label>
        <input type="checkbox" id="toggle-1">               
            <nav>
            <?php
                 wp_nav_menu( 
                     array(
                         'menu'              => 'primary-menu', //Desired menu id, name or object
                         'theme_location'    => 'primary_menu', //Theme location
                         'menu_id'           => 'primaryMenu', //The id for ul, default is the menu slug, incremented
                         'fallback_cb'       => 'false', //A callback function, default 'wp_page_menu'
                     ) 
                );
                ?>
            </nav>
    </section>

CSS Stylesheet

Below is the CSS stylesheet of the menu:

.primary-menu{
    background: #f8f9fa;
    z-index: 1000;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    margin-left: -40px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    height: 40px; 
}
.primary-menu nav{
    width:auto;
    float:left;
    margin-top: -15px;
    text-transform: uppercase;
}
.primary-menu nav ul{
    display:table;
    float:right;
    list-style-type: none;
}
.primary-menu nav ul li{
    float:left;
}
.primary-menu nav ul li:last-child{
    padding-right:0px;
}
.primary-menu nav ul li a{
    color:#000; 
    font-size:15px; 
    padding: 7px 30px; 
    display:inline-block; 
}
.primary-menu nav ul li a:hover,
.primary-menu .menu .current_page_item{
    background-color:#fff; 
    border-bottom: 2px solid #3949ab;
    transition: all 0.1s ease 0s;
}
.primary-menu .toggle-menu ul{
    display:table; 
    width:25px;
}
.primary-menu .toggle-menu ul li{
    width:100%; 
    height:4px; 
    background-color:#3949ab; 
    margin-bottom:4px;
}
.primary-menu .toggle-menu ul li:last-child{
    margin-bottom:-8px;
}
.primary-menu input(type=checkbox), label{
    display:none;
}
@media only screen and (max-width: 680px) {
.primary-menu input(type=checkbox) {
    position: absolute; 
    top: -9999px; 
    left: -9999px; 
    background:none;
    }
.primary-menu input(type=checkbox):focus{
    background:none;
    }
.primary-menu {
    height: 34px;
}
    .primary-menu .toggle-menu ul{
    display:table; 
    width:25px;
    position: absolute;
    right: 10px;
    margin-top: 0px;
    list-style-type: none;
}
.primary-menu label{
    position: absolute;
    right: 0;
    padding:8px 0px; 
    display:inline-block; 
    cursor:pointer; 
    }
.primary-menu input(type=checkbox):checked ~ nav{
    display:block;
    }
.primary-menu nav{
    display:none; 
    position:absolute; 
    right:0px; 
    top:50px; 
    background-color:#f8f9fa; 
    border: 2px solid #ddd;
    border-top: none;
  border-bottom: none;
    padding:0px; 
    z-index:999;
  }
.primary-menu nav ul{
    width:250px;
    margin: 0px;
  }
.primary-menu nav ul li{
    float:none; 
    padding:0; 
    width:100%; 
    display:table;
    }
.primary-menu nav ul li a{
    color:#000; 
    font-size:15px; 
    padding:10px 20px;
    display:block; 
    border-bottom: 1px solid #ddd;
    }
}

Kindly do point the error in my code and suggest improvements. 

Putty Settings Disappeared on Windows 10 after May 2020 Update

I know this is not a specific question about servers (don’t downvote me if that concerns you and makes you upset, just be a jerk in the comments section), but Putty is used to connect to servers. After the most recent Windows 10 Update… All pre-configured settings I had in Putty disappeared. Does anyone know where to find them?

Thanks in advance.

trains – Best way of going from Frankfurt to Zurich in the first days of June 2020? (COVID-19)

I am from Argentina and have a flight for June 2 from Buenos Aires to Frankfurt. It lands on June 3. My final destination is Zurich, to start my PhD. So basically I need a way to travel from Frankfurt to Zurich on June 3. I don’t know which is the situation there in Europe. Are trains working? Planes? Bus? Should I expect any inconvenience? I have some paperwork both from the university and from the embassy to help me with this journey.

Criptomonedas 2020 – Cryptocurrencies Corner

¿Quiénes son las mejores criptomonedas para este 2020?  Pues esto va a depender mucho de los vaivenes del mercado, ya que el dinero digital es especialmente volátil, pero también de la comunidad y la tecnología sobre las que se orientan tanto plataformas como sus tokens.

 

BITCOIN (BTC)

Capacidad de mercado

En torno al 44%

 

Cantidad máxima

21 millones de BTC

 

Lanzamiento

03.01.2009

ETHEREUM (ETH)

Capacidad de mercado

En torno al 17%

 

Cantidad máxima

Sin límites

 

Lanzamiento

30.07.2015

Ondulación (XRP)

Capacidad de mercado

En torno al 8%

 

Cantidad máxima

100 millones XRP

 

Lanzamiento

2012

EOS (EOS)

Capacidad de mercado

Menos del 1%

 

Cantidad máxima

1 billón EOS

 

Lanzamiento

26.06.2017

LITECOIN (LTC, Ł)

Capacidad de mercado

En torno al 3%

 

Cantidad máxima

84 millones LTC

 

.(tagsToTranslate)criptomone.2020

New 2020 Dedicated Server Prices from $19/mo *fully managed*100% confidential* in Riga, Latvia | Proxies-free

WE ARE NOT AFFECTED BY COVID-19! SERVER PROVISIONING, SUPPORT TEAM AND REMOTE HANDS WORK AS USUAL!

We are a server rental company running our own private datacenter located in Europe (Latvia). New 2020 prices below:

* First term 50% off (for example: pay for 1 year in advance and get 50% off for a year!)

Coupon code exclusively for WHT users: WJ2020

Brand new HP and Supermicro servers, fully managed and 100% confidential.

Dedicated Intel Celeron Quad Core
4 core CPU
4GB DDR3 RAM
500GB HDD
1gbit port
Centos 6 / 7 / 8 (or Debian/Ubuntu/Fedora/FreeBSD/Windows)
1 clean IP
FREE 24h SETUP
FULLY MANAGED
@$19.50/mo.
Click here to Order Now!

Dedicated Intel Dual Core (Xeon, Core i3 or similar)
2 core CPU
8GB DDR3 RAM
1TB HDD RAID1 (or 128GB SSD)
1gbit port
Centos 6 / 7 / 8 (or Debian/Ubuntu/Fedora/FreeBSD/Windows)
1 clean IP
FREE 24h SETUP
FULLY MANAGED
@$24.50/mo.
Click here to Order Now!

Dedicated Intel Quad Core (Xeon, Core i5 or similar)
4 core CPU
16GB RAM
2TB HDD RAID1 (or 256GB SSD)
1gbit port
Centos 6 / 7 / 8 (or Debian/Ubuntu/Fedora/FreeBSD/Windows)
1 clean IP
FREE 24h SETUP
FULLY MANAGED
@$34.50/mo.
Click here to Order Now!

Dedicated Intel Quad Core Plus(Xeon, Core i7 or similar)
4 core CPU
32GB RAM
2TB HDD RAID1 (or 256GB SSD)
1gbit port
Centos 6 / 7 / 8 (or Debian/Ubuntu/Fedora/FreeBSD/Windows)
1 clean IP
FREE 24h SETUP
FULLY MANAGED
@$44.50/mo.
Click here to Order Now!

Dedicated 2x Intel Hexa Core Xeon
12 core CPU
64GB RAM
2TB HDD RAID1 (or 520GB SSD)
1gbit port
Centos 6 / 7 / 8 (or Debian/Ubuntu/FreeBSD/Windows)
1 clean IP
FREE 24h SETUP
FULLY MANAGED
@$54.50/mo.
Click here to Order Now!

Now a FREE Windows Server 2008R2/2012R2/2016 license with any config! (available on request)

Please visit our website: https://serveria.com or PM me for a personalized quotation.

 

Super Affiliate System 2020 – John Crestani course

Super Affiliate System 2020 – John Crestani course

(IMG)
Converts to cold traffic Bizopp. 50% commission on the web interface $ 997 + $ 247 / m Oto. 30% take take on upsell. Sas is a 6 week paid traffic course to build an affiliate marketing business. The highest converting webinar funnel. 1:10 hops: from Imp = Good.

Created by John Crestani, a marketing partner featured on Forbes, ABC, NBC, Fox News, CNBC, Entrepreneur.com, Fast Company and many others.
https://bit.ly/3bzC1k0

SQL Server scheduled scripting of DDL (2020 edition)

I'm currently in need of a way to pragmatically generate DDL scripts for a single database in SQL Server. My current need is to do this in 2012, but it's likely I'll need to be able to do this with 2008 – 2017.

I've seen this question (and answers) SQL Server 2012: Generate Scripts from command line

as well as this one https://stackoverflow.com/questions/483568/how-can-i-automate-the-generate-scripts-task-in-sql-server-management-studio-2

I'm trying to figure out the best way to do this today. I realize this may seem like a duplicate, especially if there's an answer out there that is the best way to do it today (and maybe I just don't realize it).

The simple version of the question:

In SQL Server 2012, what's the best way, that I can schedule, to produce all the DDL needed to make an exact replica of a database?