Home › Forums › Support › Underline link in WordPress editor This topic has 5 replies, 2 voices, and was last updated 2 years, 2 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts July 22, 2022 at 9:46 am #2290844 William Hello – I am not using a child theme. Is there a way to get the underlines of my hyperlinks to show up on the backend inside the WordPress editor? Thank you. July 23, 2022 at 2:25 am #2291194 DavidStaff Customer Support Hi there, with the Code Snippets plugin, try adding this snippet: add_filter( 'block_editor_settings_all', function( $editor_settings ) { $css = '.wp-block a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: #101010; font-weight: 700; }'; $editor_settings['styles'][] = array( 'css' => $css ); return $editor_settings; } ); July 23, 2022 at 7:55 am #2291480 William Hi David – Thanks very much for the help here. I installed the code snippets plugin and added that function. Unfortunately, still no underline on the backend. Here is my code for the hyperlinks if that’s helpful: .entry-content p a, .entry-content h2 a, .entry-content h3 a{ text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: #101010; font-weight: 700; } July 23, 2022 at 10:37 am #2291548 DavidStaff Customer Support Try the updated code above: https://generatepress.com/forums/topic/underline-link-in-wordpress-editor/#post-2291194 July 23, 2022 at 11:04 am #2291575 William David thank you so much! Stellar support as always. July 24, 2022 at 3:04 am #2291845 DavidStaff Customer Support Glad to be of help! Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In