June 21, 2026

Featured Image

How to fix WordPress Classic Editor link search hidden layout bug

|
To fix WordPress Classic Editor link search hidden fields caused by layout styling conflicts in older link plugins, you need to add a small CSS adjustment to your site's administration dashboard header. Adding a custom code snippet directly to your theme's functions.php file forces the overloaded insert link popup box rows to shrink, instantly pulling the hidden search panel back into full view.

Are you a WordPress Classic Editor user who is having trouble adding links to your blog posts?

Specifically, when you highlight text and open the "Insert/edit link" popup box, you might find that the internal search box—the list showing your past post titles is almost completely hidden or blocked from sight.

If you are experiencing this exact problem, it is because you are using a plugin called Title and Nofollow For Links (Classic Editor).

This older plugin is highly popular because it restores the missing Title field attribute and adds quick checkboxes for "rel=nofollow" and "rel=sponsored" attributes. 

However, because of recent WordPress core updates, the plugin's extra options create too much padding. 

This excess padding pushes the standard link search field completely downward and out of view.

Gutenberg Block Editor Note: This problem and its solution apply only to the Classic Editor interface. The modern Block Editor handles link popups differently and is not affected by this bug.

How to fix WordPress Classic Editor link search hidden layout bug


How to fix the hidden search box

Now that we know the plugin is causing the layout to break, we can easily fix it. 

We will use a safe layout code snippet that shrinks the vertical space taken up by the plugin's custom checkboxes, pulling your search box right back into view.

  1. Log in to your WordPress dashboard.
  2. Navigate to your active theme files, or use a free code management plugin like WPCode or Code Snippets (this is the safest method for beginners).
  3. Create a new snippet and copy-paste the complete code block provided below:
add_action('admin_head', 'fix_wplink_modal_padding_v2');
function fix_wplink_modal_padding_v2() {
    echo '<style>
        /* 1. Collapse the main padding around the options container */
        #wp-link #link-options {
            padding: 2px 0 0 0 !important;
            margin: 0 !important;
        }
        
        /* 2. Shrink the vertical space of each input row option */
        #wp-link #link-options div {
            margin-bottom: 3px !important;
            line-height: 1 !important;
        }
        
        /* 3. Tighten the option labels so they take up less space */
        #wp-link #link-options label span {
            max-width: 60px !important;
            padding: 0 !important;
        }
        
        #wp-link #link-options input[type="text"] {
            height: 24px !important;
            margin: 0 !important;
        }

        /* 4. Ensure the search text input area stacks without overlap */
        #wp-link .wp-link-input {
            margin-bottom: 2px !important;
        }
    </style>';
}
  1. Save the snippet modifications and set it to run everywhere inside your administration dashboard.


Why this code keeps the layout fixed consistently

Every single time you highlight a piece of text and click the insert link feature icon, WordPress triggers a dynamic script file to draw and measure the popup settings window on your screen. 

Because it loads on demand, simple CSS changes can sometimes get ignored or reset when you reload the post page editor.

This snippet uses the admin_head hook configuration to tell your WordPress site to prioritize these custom interface layout rules above everything else. 

By drastically tightening the bottom margins of each checkbox row item, we compress the extra link settings block from the inside out. 

This safely prevents the plugin elements from overlapping your internal search results container panel layout, restoring full normal visibility every single time you edit your content posts.

So this is the correct way to fix WordPress Classic Editor link search hidden layout bug.