Ditutup

update wp plugin code - Load CSS / JS on specific admin page url

/[login to view URL]

I want the plugin (css / js) plugin js to only load on that specific url NOT on all wp-admin pages.

wp_enqueue_style

wp_enqueue_script

-----

I have this much code so far but it doesnt seem to do the job

function load_assets(){

$current_page = get_current_screen()->base;

if($current_page == 'ep-mock-draft-settings') {

wp_register_style('custom_wp_admin_css1', plugins_url('/assets/css/[login to view URL]'));

wp_enqueue_style('custom_wp_admin_css1');

wp_enqueue_script('admin_js_bootstrap_hack', plugins_url('/assets/js/[login to view URL]'), false, '1.0.0', true);

wp_enqueue_script('admin_js_jquery_ui', plugins_url('/assets/js/[login to view URL]'), array('jquery'),false,true);

}

else { // # if not on post page, deregister and dequeue styles & scripts

wp_dequeue_style('custom_wp_admin_css1');

wp_dequeue_script('admin_js_bootstrap_hack');

wp_dequeue_script('admin_js_jquery_ui');

}

}

Kemahiran: PHP, Wordpress, Javascript, CSS, jQuery / Prototaip

Lihat lagi: admin_enqueue_scripts, add custom javascript to wordpress plugin, wordpress admin enqueue scripts not working, wordpress enqueue script on specific admin page, wp_enqueue_style, wp_enqueue_script, wp_register_style, admin_enqueue_scripts not working, css safari specific, update myspace player code, code load file obj opengl, code load css ie6 ie7, code improvement css, ajax java code load list box, load specific web page php mysql code, geturl flash code load window, update prices product code excel, conditional load css firefox, load css page load, load css js

Tentang Majikan:
( 50 ulasan ) las vegas, United States

ID Projek: #21366847

13 pekerja bebas membida secara purata $38 untuk pekerjaan ini

fattahaabdul

I can update WP plugin for you. I have 8+ years of experience in WordPress. I assure you that I will give 100% quality work. Let us discuss and proceed further in chat. I am online. Please reply.

$150 USD dalam 7 hari
(161 Ulasan)
8.1
dynamitewebsol

Hello, I read your requirements and understand very-well and ready to start work from now. Thank you

$20 USD dalam sehari
(128 Ulasan)
6.9
erashrafkamal

Dear Employer! Thanks for job posting. I have read the description carefully and give you 100% assistance as Website Developer to update wp plugin code. Skills- PHP, WordPress, AWS, Woocommerce, genesis,AVADA,DIVI,LM Lagi

$20 USD dalam 7 hari
(44 Ulasan)
5.9
nivasoftvietnam

I AM AMONG TOP 9% OF BEST FREELANCERS. I always have Proof of Concept * When you send a message me directly then I send you the profile to introduce my testimonial videos that my clients review by video as well as my Lagi

$100 USD dalam 7 hari
(54 Ulasan)
5.6
suronjit

I have 5 years experience in web developing using wordpress.I have sound knowledge in php,jquery,javascript,css and html.I am ready to do this task.

$20 USD dalam sehari
(29 Ulasan)
4.4
jyotivmsoftsolut

Hi Ryan P.! I'm an expert WordPress, Woo-commerce, Shopify, HTML/CSS, Bootstrap, UI/UX Designer/Developer, complex websites, graphic design,web design, logo design, landing pages, building custom themes based on PSDs, Lagi

$25 USD dalam 2 hari
(22 Ulasan)
4.1
solutionHDM

Hi There, I have gone through the job details carefully and I am excited to start working on this wordpress project. I am ready to start work immediately. Please let me know of a good time so that we can discuss about Lagi

$30 USD dalam 2 hari
(8 Ulasan)
3.8
baidyamadhu007

I am a Php developer.I also expert in wordpress.I have been worked during 7 yrs in Jquery/Javascript and core php also.I have been worked on that field during 7 years of experience with that filed. I am able to fix Lagi

$20 USD dalam 0 hari
(4 Ulasan)
3.6
goldenths

Hi, there I’ve read your description carefully and your call for a developer for PHP job sounds like a great fit for my skills, and I’d love the chance to prove my abilities. I have made a lot of projects with CMS su Lagi

$20 USD dalam sehari
(10 Ulasan)
3.6
arjun6452

Hi i am arjun, i am new to freelancer but I have a good background and knowledge of tools, builder and applications such as Adobe Photoshop, Divi, Elementor as well and been working on html and other CMS. , i am worki Lagi

$20 USD dalam 2 hari
(5 Ulasan)
1.6
ramakrishnapanig

Hello I have read the job description carefully and able to fulfill your needs . I have been working as a wordpress,Shopify developer and designer for more than 6 years and I know all the ins and outs of wordpress deve Lagi

$20 USD dalam sehari
(2 Ulasan)
0.3
projectsTF

Hi, Hope you are doing well!! I have gone through your project requirement. I am expert in wordpress web development and designing . I developed and design wordpress websites. Sure, I will fix design and develo Lagi

$20 USD dalam sehari
(0 Ulasan)
0.0
AkmalNoor1

Am expert in php, css , css3 ,html, html 3, java script, Relevant Skills and Experience Over 3 years experience in this field My working speed is well and too much satisfied

$25 USD dalam 10 hari
(0 Ulasan)
0.0