Site logo

Archived topic

Underline the links inside the wordpress editor

2 replies · Started by Hilton on July 12, 2021

Viewing posts 1–3 of 3

Just to complement, I added this function to my child theme functions.php

function customAdminCSS() {
    $url = get_settings('siteurl');
    $url = $url . '/wp-content/themes/YOUR-CHILD-THEME/wp-admin.css';
    echo '<!-- custom admin css -->
          <link rel="stylesheet" type="text/css" href="' . $url . '" />
          <!-- /end custom adming css -->';
}
add_action('admin_head', 'customAdminCSS');

and created a file named wp-admin.css with this code

div[class^="block-editor"] .editor-styles-wrapper a {
  text-decoration: underline;
}

It seems to be working, I just don't know if it is the best alternative.

This archived topic is closed to new replies.