skip to Main Content

Why isn't my javascript working in wordpress ( Did I link it the right way)

Here is the function.php /** * Enqueue scripts and styles. */ function maxprofessional_scripts() { wp_enqueue_style( 'maxprofessional-style', get_stylesheet_uri(), array(), _S_VERSION ); wp_enqueue_style( 'maxprofessional-main', get_template_directory_uri() . '/css/main.css' ); wp_enqueue_script( 'maxprofessional-javascript', get_template_directory_uri() . 'js/app.js' ); wp_enqueue_style( 'bootstrap-icons', 'https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css' ); wp_style_add_data( 'maxprofessional-style', 'rtl', 'replace'…

VIEW QUESTION

WooCommerce: "This key is invalid …" error

I've created a custom reset password page on my WooCommerce site. The reset page was previously /my-account/lost-password/, but my custom page is /reset-password/. In my theme, I've copied over the WooCommerce customer-reset-password.php so I could customise the URL in the…

VIEW QUESTION

WordPress – How to add a random name so that files won't replace php

if(isset($_FILES['attachment'])){ $errors= array(); $file_name = $_FILES['attachment']['name']; $file_size =$_FILES['attachment']['size']; $file_tmp =$_FILES['attachment']['tmp_name']; $file_type=$_FILES['attachment']['type']; $file_ext=strtolower(end(explode('.',$_FILES['attachment']['name']))); $extensions= array("jpeg","jpg","png"); if(in_array($file_ext,$extensions)=== false){ $errors[]="extension not allowed, please choose a JPEG or PNG file."; } if($file_size > 2097152){ $errors[]='File size must be excately 2 MB'; } } $sql…

VIEW QUESTION
Back To Top
Search