Problems with cart and pages on _s theme
Problems with cart and pages on _s theme
Problems with cart and pages on _s theme
Try changing the version number on .css and .js files when you change them. That can be a real pain while you are developing so you can use a random number. $randomizr = $rand = rand( 1, 99999999999 );// Enqueue scripts and styles wp_enqueue_script( ‘my-script’, get_stylesheet_directory_uri() . ‘/assets/js/my-script.js’, array(‘jquery’), $randomizr, true );
You’re trying to combine isset with a value comparison, and that’s not how it works. You should rewrite this: if(isset($_POST[‘Client_Type_Edit’]) == ‘Individual’) to this: if ( isset( $_POST[‘Client_Type_Edit’] ) && ‘Individual’ === $_POST[‘Client_Type_Edit’] ) This is checking to make sure that $_POST[‘Client_Type_Edit’] is set AND the value is equal to “Individual”. Now repeat that for … Read more
You’ve tagged your question correctly with wp_enqueue_script but it doesn’t appear in your code so you are probably missing the jQuery library and bootstrap by the looks of it. Try adding the following: add_action(‘wp_enqueue_scripts’, ‘wp_add_jquery’); function wp_add_jquery () { wp_register_script( ‘my_jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js’); // Add your other scripts here (bootstrap, etc.) }
This is solved, I add all files in header so its create problems now i add js files in footer so my problem is solve.
Building a custom menu or use a plugin?
Is there a way to change the value of $msg and send it back to the HTML? Your code is basically already doing that, but there are a few issues: Your AJAX JS (jQuery.ajax()) is not sending the POST data named site-choice to your AJAX PHP callback (users_details_callback()) which reads the data via $_POST[‘site-choice’]. Your … Read more
Warning: This page allows direct access to your site settings. You can break things here. Please be cautious!
From the provided error, it appears you have added in some custom code to your functions.php file in your theme. Suggest commenting out the last changes you made, but the error is clearly stating that line 50 is the culprit so that would be a good starting point if you’re unsure. If this has happened … Read more
hide theme files for admin beneath root