Code Monkey home page Code Monkey logo

wordpress-open-link-in-new-tab's Introduction

open-link-in-new-tab

This code allows you to add a new button in WordPress Visual Editor to directly assign links to open in new tab.

This code will add a "new tab" button in WordPress TinyMCE Visual Editor toolbar.

Write Some Text in Visual Editor. Select and click on edit/insert icon. Give some URL.

Now.. You dont have to click on 'gear' icon each time to select 'open link in new tab'. For few URLs you can follow default approach but if there are a lot of Links in your page which you want to open in New Tab then its kind of pain.

The button called as 'new tab' on editor, you just have to click on that and it will automatically assign target="_blank" and rel="nofollow" to given link.

Support : Feel free to contact in case of any changes or modifications. I will be happy to help you.

Ref : (a) : https://stackoverflow.com/questions/39115564/wordpress-hook-filter-to-process-link-inside-a-post (b) : https://wordpress.stackexchange.com/questions/141344/add-button-in-tinymce-editor-to-insert-text

wordpress-open-link-in-new-tab's People

Contributors

ankitwebs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.