• Resolved UiPress

    (@admintwentytwenty)


    Hello,

    I noticed when using your plugin that the admin css for your plugin is loaded on every page of the admin. This can cause issues with other plugin styles and as well wordpress core pages too. Would it be possible to conditionally load the css only on the Alt Text AI pages? There is an easy way to do this with wordpress functions:

    $hook_suffix = add_options_page($menu_name, $menu_name, "edit_posts", $slug, "load_alt_text_ai_page");

    add_action("admin_head-{$hook_suffix}", "load_alt_text_ai_styles");

    Thanks!

    Mark

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Alt text ai admin css loading on every admin page’ is closed to new replies.