Title: wp_editor Link Question
Last modified: August 20, 2016

---

# wp_editor Link Question

 *  [Taras Dashkevych](https://wordpress.org/support/users/taskotr/)
 * (@taskotr)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/wp_editor-link-question/)
 * Hello,
    Is it possible to hide/remove the “Or link to existing content” section
   from tinyMCE (link button)?

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

 *  [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * (@rustaurius)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wp_editor-link-question/#post-3596797)
 * Did you ever figure this out?
 *  [Carlos Faria](https://wordpress.org/support/users/frendeliko/)
 * (@frendeliko)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_editor-link-question/#post-3596798)
 * I need this too!! Someone figured this out?
 *  [jman057](https://wordpress.org/support/users/jman057/)
 * (@jman057)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wp_editor-link-question/#post-3596820)
 * Anyone figure this one out?
 *  [Carlos Faria](https://wordpress.org/support/users/frendeliko/)
 * (@frendeliko)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wp_editor-link-question/#post-3596821)
 * Remove node with Javascript (jQuery)
 * `$('#internal-toggle').remove();`
 * Dirty but works
 *  [jman057](https://wordpress.org/support/users/jman057/)
 * (@jman057)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wp_editor-link-question/#post-3596822)
 * frendeliko, could you please provide a little more detail as to how you implemented
   this? I haven’t worked with JS yet!
 * I found a way using TinyMCE Advanced plugin, and selecting the “Advanced Link”
   option, but now it seems I must run the editor in Teeny mode, which doesnt use
   the setting of this plugin!
 * Thanks in advance!
 *  [Carlos Faria](https://wordpress.org/support/users/frendeliko/)
 * (@frendeliko)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wp_editor-link-question/#post-3596823)
 * In your functions.php you should register a script file like this:
 *     ```
       function mytheme_register_scripts() {	
   
       		wp_register_script(
       			'custom',
       			get_template_directory_uri() . "/js/custom.js",
       			array('jquery'),
       			'1.0',
       			true
       		);			
   
       }
       add_action( 'init', 'mytheme_register_scripts' );
       ```
   
 * Then in your theme folder make a folder called **js** and inside create a file
   called custom.js with the following content:
 *     ```
       jQuery(document).ready(function($){
       	$('#internal-toggle').remove();
       };
       ```
   
 * Hope this helps!

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

The topic ‘wp_editor Link Question’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 6 replies
 * 4 participants
 * Last reply from: [Carlos Faria](https://wordpress.org/support/users/frendeliko/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/wp_editor-link-question/#post-3596823)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
