Hamburger Navigation Menu

You could solve this with other nasty hacks but here’s kind of WordPress way: In your header.php <?php // User is not using mobile if( ! wp_is_mobile() ) { wp_nav_menu(); // Your “original menu” } // User is using mobile else if( wp_is_mobile() ) { wp_nav_menu(); // Your another menu that only has top level … Read more

Not even able to Log in [closed]

WordPress.org has its own accounts for the support forums and it has nothing to do with the logins for your website, or for WordPress.com, the hosted version of WordPress. When you self-host a website with the WordPress responsibility the management of your logins is your responsibility and no one at WordPress.org or WordPress.com can help. … Read more

Add menu to CMS page

Try below code ( with proper modifications if needed ) in your ‘header.php’ <?php if (has_nav_menu(‘primary_navigation’)) : wp_nav_menu([‘theme_location’ => ‘primary_navigation’, ‘menu_class’ => ‘nav’]); endif; ?> For more details try this link

Resolve the debugs

Number 1 is not wordPress, but PHP. $_GET[‘type’] is undefined. Use an isset( $_GET[‘type’] ) conditional. Number 2 the error message tells you exactly what to do. Instead of calling: add_custom_background(); …call: add_theme_support( ‘custom-background’ ); Number 3 the error message tells you exactly what to do. Instead of calling: attribute_escape(); …call: esc_attr(); Number 4 is … Read more

How to change first letter of active menu item

1. CSS ::first-letter The first option is selector CSS ::first-letter. li.menu-item.active a::first-letter { color: red; } The a tag inside menu should have display: block / display: inline-block. Note: The ::first-letter selector can only be used with block-level elements. 2. Filter nav_menu_item_title Another way is to use nav_menu_item_title filter and surround the first letter with … Read more

nav tag wrapping around dropdown

Setting specific min-width and max-width for your <nav> menu will fix the issue: <nav class=”navbar navbar-inverse navbar-fixed-top” role=”navigation” style=”min-width: 1000px; max-width: 1000px;”> Here’s the JavaScript/jQuery method that will set the min-width and max-width of your .navbar when the event ‘affix.bs.affix’ got fired: var navbar = jQuery(‘nav.navbar’); // If ‘affix.bs.affix’ is fired. navbar.on(‘affix.bs.affix’, function () { … Read more

Why don’t my custom menus show up in WPtouch Pro?

There are two solutions. The simplest is have you database tables start with wp_. Of course that is’t always an option, for example a multi-site install or a situation where you don’t control the host environment. I looked around other parts of the code, and they use {$wpdb->base_prefix} when constructing the SELECT queries, but for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)