Plugin Directory

Changeset 3383542


Ignore:
Timestamp:
10/23/2025 03:12:57 PM (5 months ago)
Author:
esselinknu
Message:

3.2

  • ACF pop-up fix
Location:
esselinknu-settings/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • esselinknu-settings/trunk/esselink-nu-settings.php

    r3383535 r3383542  
    44 * Plugin URI: http://www.esselink.nu
    55 * Description: Settings plugin for custom WP configuration for Esselink.nu / Mindworkz WP websites.
    6  * Version: 3.1
     6 * Version: 3.2
    77 * Author: Esselink.nu
    88 * Author URI: http://www.esselink.nu
    99**/
    10 $esselink_nu_settings_version = 3.1;
     10$esselink_nu_settings_version = 3.2;
    1111
    1212$esselink_nu_server_hosts = array(
  • esselinknu-settings/trunk/includes/basic-settings.php

    r3383535 r3383542  
    451451
    452452// Fix ACF popup Mindworkz sites
    453 add_action( 'admin_enqueue_scripts', 'esselink_nu_fix_acfpopup' );
     453add_action( 'admin_enqueue_scripts', 'esselink_nu_fix_acfpopup', 9999 );
    454454
    455455function esselink_nu_fix_acfpopup() {
     456    wp_register_style(
     457        'esselink-acf-fix',
     458        false // Geen extern bestand, we voegen inline toe
     459    );
     460
     461    wp_enqueue_style( 'esselink-acf-fix' );
     462
    456463    $custom_css = "
    457464        .acf-fc-popup li {
    458465            height: auto;
    459466        }
    460 
    461467        .acf-fc-popup ul {
    462468            display: grid !important;
    463469            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    464470        }
    465 
    466471        .acf-fc-popup ul li {
    467472            width: 100% !important;
     
    470475    ";
    471476
    472     wp_add_inline_style( 'wp-admin', $custom_css );
    473 }
     477    wp_add_inline_style( 'esselink-acf-fix', $custom_css );
     478}
     479
    474480
    475481function esselink_nu_check_gebrk()
Note: See TracChangeset for help on using the changeset viewer.