Is there a way for JLex Review to automatically force links in reviews to open a new window when clicked on?
6 replies
8 years ago
Perfect! Thank you so much!
8 years ago
May I don't understand your question. Would you like open each review in new window instead of itself window ?
8 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
8 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.
8 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
Reply to
Latest articles
-
Outstanding Features of Joomla: Why It's a Top Choice Among Open-Source CMS Platforms
- Joomla
- WordPress
-
Youtube Module Documentation
- Youtube
- Documentation
-
JLex Transfer Documentation
- Documentation
- JLex Transfer
-
YouTube Video Categories List
- Youtube
-
JLex Comment Documentation
- JLex Comment
- Documentation
-
Tips to have an effective design for your Joomla E-commerce Website
- Joomla
- Web design
-
Why ratings and reviews are important for your website
- Joomla
- JLex Review