• Resolved kapser

    (@kapser)


    Hello, thank you very much for the great plugin!

    I would like to ask you how can I treat a whole category example.com/test/ as external (new tab, nofollow etc).

    I see how I can do the opposite (treat external as internal), but couldn’t figure out this one.

    Thanks in advance for your time!

    • This topic was modified 4 years, 11 months ago by kapser.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alexandru Tapuleasa

    (@talextech)

    Hi ??,

    We don’t have an option to exclude/include whole categories.
    If you don’t have a lot of posts in your category you can add all the links in the “Include external links by URL:” to mark them as external.

    I have the same problem as you and solved it. You can add conditions to Function.php or add to the plugin:
    1. Navigate to this plugin directory
    2. Go to Includes -> class-wpel-front.php
    3. Find fuction set_link and add conditions:
    if (strpos (urldecode ($ url), example.com/test/’)) {
    ???????????? $ link-> set_internal ();
    ???????????? $ this-> apply_link_settings ($ link, ‘external-links’);
    ???????????? $ link-> remove_from_attr (‘rel’, ‘external’); // Remove this line to add external attr
    ???????? }

    Thread Starter kapser

    (@kapser)

    Hello,
    I added the link of the category https://example.com/test/ to the “Include external links by URL:”, managed the settings in “Excluded links” tab and it worked for all my test posts ??

    @talextech and @hieule10031999 thank you very much for your responses and your time ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Treat internal links as external’ is closed to new replies.