Hook for Setup Wizard

#293815
  • Resolved Chasi
    Rank Math business

    I am trying to figure out a hook to interject CSS to setup wizard, I had modified the default WordPress media uploader and want the changes to be on the media uploader within your setup wizard.

    For example:

    add_action(‘admin_head’, ‘nameFunction’);

    What should I replace admin_head with?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math support today and bringing your concern to our attention.

    Could you please further explain your objective in detail?

    When injecting a CSS script for your admin you can make use of the add_action line you shared. You don’t need to replicate it. Here’s an example:

    add_action('admin_head', 'my_custom_admin_css');
    
    function my_custom_admin_css() {
      echo '<style>
        .my-class{
            display: none !important;
        }
      </style>';
    }

    If it seems I am still missing something, please share some screenshots on the area you wish to further modify.

    Looking forward to helping you with this one.

    Chasi
    Rank Math business

    Doesn’t seem that admin_head hooks into the Rank MAth Setup Wizard

    See the Photo of the admin area I am talking about:

    https://snipboard.io/THxrAW.jpg

    Hello,

    To apply your very own custom styles you’ll first need to dequeue our styles for the setup wizard and enqueue your custom styles right after that.

    Our styles for that are named rank-math-wizard so you know which ones you need to dequeue before applying yours.

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Hook for Setup Wizard’ is closed to new replies.