Kapalı

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');

}

}

Beceriler: PHP, WordPress , Javascript, CSS, jQuery / Prototype

Daha fazlasını gör: 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

İşveren Hakkında:
( 50 değerlendirme ) las vegas, United States

Proje NO: #21366847

Bu iş için 13 freelancer ortalamada $38 teklif veriyor

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 in 7 gün içinde
(161 Değerlendirme)
8.1
dynamitewebsol

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(128 Değerlendirme)
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 Daha Fazla

$20 USD in 7 gün içinde
(44 Değerlendirme)
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 Daha Fazla

$100 USD in 7 gün içinde
(54 Değerlendirme)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(29 Değerlendirme)
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, Daha Fazla

$25 USD in 2 gün içinde
(22 Değerlendirme)
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 Daha Fazla

$30 USD in 2 gün içinde
(8 Değerlendirme)
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 Daha Fazla

$20 USD in 0 gün içinde
(4 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(10 Değerlendirme)
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 Daha Fazla

$20 USD in 2 gün içinde
(5 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
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 in 10 gün içinde
(0 Değerlendirme)
0.0