Creating Log-In Page for backend server

VICTORY. At least…no 404 anymore. I haven’t actually tried to use the script yet, too excited. Thanks for the direction, Nath! Here is what I did. I went to my theme and created a subfolder titled, “js.” In the same theme, I edited header.php to include the following just below : (The part in bold, … Read more

Why does my media selection script write to ONLY the first input field?

this problem is because of the first “if”, the good text field in only set the first time to change that, you can add a “data” arguement in HTML and change the JavaScript code like that (look the modification in meta_image_frame.on(‘select’…) (function($) { ‘use strict’; $(function() { var meta_image_frame; function saveImage(e, uiElement) { e.preventDefault(); if … Read more

wordpress ajax upload media not working

This looks like the access to admin-ajax.php is forbidden (error 403). For some reason, many security plugins are preventing access to admin-ajax.php, even with this file being essential for WordPress to work correctly. If you use some security plugin, check out if it is maybe blocking admin-ajax.php. Check if admin-ajax.php is blocked in .htaccess file … Read more

PHP array to jQuery array ” Uncaught SyntaxError: Unexpected token < "

To change choices depending on what an user selected in another input/select, you need to use the WP AJAX API. In your functions.php, use wp_localize_script() to get AJAX url available on front-end and define an AJAX action callback function mytheme_custom_scripts() { if ( is_page(‘Support’) ) { $scriptSrc = get_stylesheet_directory_uri() . ‘/js/freshdeskdata.js’; wp_enqueue_script( ‘myhandle’, $scriptSrc , … Read more

how do you create this customize menu using wp_nav_menu function?

You can to pass class into function arguments: ‘menu_class’ (string) CSS class to use for the ul element which forms the menu. Default ‘menu’. So you can try this: <?php $args = array( ‘menu_class’ => ‘nav header-nav header-bottom-nav nav-center nav- uppercase’, ‘menu’ => ‘(your_menu_id)’ ); wp_nav_menu( $args ); ?> You can read about WordPress Menus. … Read more