Is there a way for JLex Review to automatically force links in reviews to open a new window when clicked on?
6 replies
9 years ago
When someone puts a link to another site in a review. It is automatically hyperlinked so when you click on the link it takes you to the new location in the same window. Is there a way to format that link with a "target="_blank" so that it opens a new window when you click on it.
9 years ago
May I don't understand your question. Would you like open each review in new window instead of itself window ?
9 years ago
Is there a way for JLex Review to automatically force links in reviews to open a new window when clicked on?
Not the review itself, but any links that are put in the review. Title
Can you preview it ?? I don't understand

9 years ago
Yes, you can do that by add this script to your page:
You can put it in file: templates/aquacorals/script.js or components/com_jlexreview/assets/jlexreview.min.js
(function($) {
$(document).ready(function(){
window.setInterval (function(){
$(".reviewBlock a").not(".elink").each (function(){
$(this).addClass ("elink");
var b = $(this)[0];
b.getAttribute("href") && b.hostname !== location.hostname && (b.target = "_blank");
});
}, 500);
});
}) (jQuery)
You can put it in file: templates/aquacorals/script.js or components/com_jlexreview/assets/jlexreview.min.js
9 years ago
Perfect! Thank you so much!
Reply to
Product Changelogs
Product Changelogs
JLex Transfer
1.3.7
^ Support dark mode in the backend.
# Fixed bug when importing user list.
# Fixed bug when importing user list.
JLex Comment
3.4.8
^ hCaptcha integration.
^ Read-only mode.
^ Hide all comments of entry.
^ Dark mode for admin.
# Improved default theme.
^ Read-only mode.
^ Hide all comments of entry.
^ Dark mode for admin.
# Improved default theme.
JLex Block
6.0.3
# Important: Upgrade required to be compatible with Joomla 5 (B/C plugin).
# Fixed conflicts with system plugins.
# Fixed conflicts with system plugins.
JLex Attachments
1.4.4
^ Drag & drop file to upload
^ Sortable file list
^ Sortable file list
JLex Review
6.2.3
^ Support dark mode on the backend.
# Updated all themes.
# Works without B/C plugin.
# Updated all themes.
# Works without B/C plugin.
JLex Comment
3.4.2
# Fixed page scrolling when clicking on links.
# Improved link tag.
# Fixed avatar for Gravatar and CB.
# Improved link tag.
# Fixed avatar for Gravatar and CB.
Youtube Feed Pro
5.9.7
# Fixed the issue of not being able to get data from YouTube or data loading time being too long.