Categories
Mastering Development

WordPress Navwalker not toggling open on mobile

I have implemented the WP_navwalker in my project but it will not open on mobile. I will post the code below. If I miss something please let me know. I appreciate it if someone can help me find out what I might be missing. Thank you. I am using the latest navwalker from https://github.com/wp-bootstrap/wp-bootstrap-navwalker and […]

Categories
CMS Mastering Development Wordpress

(BAD REQUEST) 400 admin-ajax.php error WordPress

I updated my WordPress to current version as it was very outdated. And now I am getting a bad request browse issue now. /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 400 (Bad Request) browser pop up. This only occurs when user is not logged in admin. I checked plugins and […]

Categories
CMS Development Wordpress

why enqueued styles in header.php shows in footer?

I`m using this code in functions.php: add_action(‘wp_head’, ‘addMyStyle’); function addMyStyle() { wp_enqueue_style( ‘bootstrap’, get_template_directory_uri() . ‘/css/bootstrap.css’, false, ‘1.0’, ‘all’, false ); wp_enqueue_style( ‘bootstrap-rtl’, get_template_directory_uri() . ‘/css/bootstrap-rtl.css’, false, ‘1.0’, ‘all’, false ); wp_enqueue_style( ‘style’, get_template_directory_uri() . ‘/style.css’, false, ‘1.0’, ‘all’ ); } and <?php wp_head(); ?> tag is right before </head> tag. but style files load […]

Categories
Development iOS Plugins

Facebook Pixel not working on iOS mobile (WordPress/Woocommerce)

I am using WordPress (v 5.3) with WooCommerce (v 3.8.1). My facebook pixel registers events (ViewContent/InitiateCheckout/AddToCart/Purchase/etc.) on desktop, but doesn’t register events on mobile (iOS). All my plugins and theme are up to date. For my theme, I am using Youplay (v 3.7.4). In searching for an answer, I have noticed some people who have […]

Categories
CMS Development HTML PHP Wordpress

I got big white screen when i attach main style sheet of Html in functions.php

I am new here on @stack Enchange . Here is an issue on my work . I hope you gyies can help me in this When I attach main style sheet in function.php . a white screen occur in front end. after inspecting element all style sheet and java script are attached and html is […]

Categories
CSS Development Wordpress

Setting up multi css file for diffrent media in wp_enqueue_style

I have design a emplate with unique css file for each media. my css files are : <link href=”<?php bloginfo(‘template_url’) ?>/css/minitablet.css” type=”text/css” rel=”stylesheet” media=”only screen and (min-width: 576px) and (max-width: 768px)”> <link href=”<?php bloginfo(‘template_url’) ?>/css/tablet.css” type=”text/css” rel=”stylesheet” media=”only screen and (min-width: 768px) and (max-width: 992px)”> <link href=”<?php bloginfo(‘template_url’) ?>/css/windows.css” type=”text/css” rel=”stylesheet” media=”only screen and (min-width: […]