Treat IMAGES like external links
-
Hi there,
I’m sure there’s an easy way to do this, but I can’t figure it out. How do I make my links to images (so < img > inside < a href = ” ” > tags) open in a new tab?
Currently they’re being treated as internal links, which makes sense, but I can’t seem to exclude them.
Under Exceptions tab, I tried putting the entire uploads directory (e.g. https://domain.com/wp-content/uploads/) under “Exclude external links by URL:”, and I have “Own settings for excluded links (extra tab)” selected… but I’m assuming I’m using these settings incorrectly for what I’m trying to do.
Pasting my settings below. Any guidance would be appreciated. Thanks!
WP url: https://effortlessgent.com WP version: 5.8.3 PHP version: 7.4.19 Active Plugins: - ACF Content Analysis for Yoast SEO, version: 3.0.1 - AdThrive Ads, version: 1.1.4 - Advanced Custom Fields, version: 5.12.2 - Autoptimize, version: 3.0.2 - Cloudflare, version: 4.8.3 - ConvertBox Auto Embed WordPress plugin, version: 1.0.17 - ConvertKit, version: 1.9.7.3 - Custom Post Templates, version: 1.5 - Display Posts, version: 3.0.2 - Easy Table of Contents, version: 2.0.18 - Fixed Widget, version: 6.0.6 - Genesis Blocks, version: 1.4.0 - Genesis Title Toggle, version: 1.9.0 - Grow Social by Mediavine, version: 1.20.1 - Kutoku Autolinker, version: 1.0.0 - Lasso, version: 294 - Limit Login Attempts Reloaded, version: 2.24.1 - Limit Modified Date, version: 1.0.0 - Link Whisper, version: 1.9.3 - ManageWP - Worker, version: 4.9.13 - ProfilePress, version: 3.2.10 - Public Post Preview, version: 2.9.3 - reSmush.it Image Optimizer, version: 0.4.2 - TaxoPress, version: 3.6.0 - User Role Editor, version: 4.61.2 - Which Template, version: 4.1 - Widget Logic, version: 5.10.4 - WordPress Importer, version: 0.7 - WP Disable Automatic Updates, version: 1.1 - WP Downgrade | Specific Core Version, version: 1.2.5 - WP External Links, version: 2.51 - WP Rocket, version: 3.10.2 - WPS Hide Login, version: 1.9.4 - Yoast Duplicate Post, version: 4.4 - Yoast SEO, version: 18.5.1 - YotuWP - YouTube Gallery, version: 1.3.4.5 WPEL Settings: array( 'wpel-external-link-settings' => array ( 'apply_settings' => '1', 'target' => '_blank', 'target_overwrite' => '1', 'rel_follow' => '', 'rel_follow_overwrite' => '', 'rel_noopener' => '1', 'rel_noreferrer' => '1', 'rel_external' => '1', 'rel_sponsored' => '', 'rel_ugc' => '', 'title' => '{title}', 'class' => '', 'icon_type' => '', 'icon_image' => '1', 'icon_dashicon' => 'dashicons-menu', 'icon_fontawesome' => 'fa-address-book', 'icon_position' => 'right', 'no_icon_for_img' => '1', ), 'wpel-internal-link-settings' => array ( 'apply_settings' => '1', 'target' => '_self', 'target_overwrite' => '1', 'rel_follow' => '', 'rel_follow_overwrite' => '', 'rel_noopener' => '', 'rel_noreferrer' => '', 'title' => '{title}', 'class' => '', 'icon_type' => '', 'icon_image' => '1', 'icon_dashicon' => 'dashicons-menu', 'icon_fontawesome' => 'fa-address-book', 'icon_position' => 'right', 'no_icon_for_img' => '1', ), 'wpel-excluded-link-settings' => array ( 'apply_settings' => '', 'target' => '', 'target_overwrite' => '', 'rel_follow' => '', 'rel_follow_overwrite' => '', 'rel_noopener' => '1', 'rel_noreferrer' => '1', 'title' => '{title}', 'class' => '', 'icon_type' => '', 'icon_image' => '1', 'icon_dashicon' => '', 'icon_fontawesome' => '', 'icon_position' => 'right', 'no_icon_for_img' => '1', ), 'wpel-exceptions-settings' => array ( 'apply_all' => '1', 'apply_post_content' => '1', 'apply_comments' => '1', 'apply_widgets' => '1', 'skip_post_ids' => '', 'ignore_classes' => 'lasso-button-1, lasso-button-2, lasso-image, lasso-title', 'subdomains_as_internal_links' => '', 'include_urls' => '', 'exclude_urls' => '', 'excludes_as_internal_links' => '', 'ignore_script_tags' => '1', 'ignore_mailto_links' => '1', ), 'wpel-admin-settings' => array ( 'own_admin_menu' => '', ), );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Treat IMAGES like external links’ is closed to new replies.