Let's fly creativity!

1 minute reading time (233 words)

How to open Portfolio articles in new window/tab


Recently, we received some questions about "how to open portfolio articles in new tab" because Portfolio articles are now set to display on the same page as default style. It is also worth noting that users can force a link to open in a new window/tab by [Meta Key]-just clicking a link. However, this can still make readers less comfortable to view articles anyway. 

 As a result, we'd like to guide you a simple trick that helps to get rid off this default viewing style. Just follow this path to find the needed file to start modifying: components\com_tz_portfolio_plus\views\portfolio\tmpl\default_item.php

By addressing \default_item.php file, you can navigate and add target="_blank" in the first section before > of <a tag. Please modify at these lines as below:

Lines 111-113: This is to change direction to new tab when clicking into article's title

<a href="<?php echo $item ->link; ?>" target="_blank"  itemprop="url">
                        <?php echo $this->escape($item -> title); ?>

Lines 257-259: This is to change direction to new tab when clicking on "Read more" button

<a class="btn btn-primary TzPortfolioReadmore" href="<?php echo $item ->link; ?>"target="_blank">
                <?php echo JText::sprintf('COM_TZ_PORTFOLIO_PLUS_READ_MORE'); ?>

 That's all. I hope this helped clear up the questions and understand how to force portfolio articles to open in a different page.

Release TZ Portfolio+ 2.0.7
How to create a music page with Music add-on

Related Posts


By accepting you will be accessing a service provided by a third-party external to https://www.tzportfolio.com/

Search Blogs

Latest Posts

22 March 2022
Presenting a healthy and professional website is one of the ways to show the crowd your credibility on your business. As a result, your website should be up-to-date, so as to be in the line with current web trends. Here today we come with another upd...
11 February 2022
Hi folks,  Today I'm happy to inform you that a new version 2.5.5 of TZ Portfolio+ component is already available for download. This version was made to address a critical issue detected in the previous version. In particular, users were unable ...
25 January 2022
Happy the year of the tiger 2022! Lunar New Year is celebrated yearly in Vietnam according to the lunar calendar and this time is the year of the tiger among 12 zodiac animals. On this occasion, we would like to offer you a special deal. Yo...
26 October 2021
Looking for Halloween Joomla deals? Here is one of the spookiest deals for Joomla extensions that you should certainly take into account. Halloween is near. We are offering all subscription plans of TZ Portfolio+ for just $29 for the&n...
19 October 2021
 Hi folks, As you know, Joomla 4 Stable was officially released, which brought users an improvement in functionality, codebase, and a completely new admin interface. That's why we need to provide updates for our product. Today I would like ...

Tag Cloud

slider JDCoax Bootstrap4 COVID19 TZPortfolio+2.2.1 V2.1.0 Flipbook PortfolioDesign Update Password Joomla protectcontent Photography PHP7.4 LeaderPrice extension add-ons.TZ Portfolio users lunarnewyear2019 Keira discount Portfolio Joomlatemplates Templates TZ Portfolio+ 2.1.1 joomlatemplate jdnewyork ArumStyle extrafields Partners TZ Portfolio JQuery Styles TZPortfolio Security imagegallery TZ Portfolio Plus Pro halloween flexslider TZPortfolio+2.2.8 eastersale labourday New features Dino vani TokenKey LunarNewYear JSN Agency stayhome InstallationWizard charity add-on Events Oraz template TZFlexGrid Activation join our club Button Add-on Astroid Videocontent CustomerSupport Cybermonday CSSFramework FlipBookGallery selena template Music Override Tutorials TemPlaza Happynewyear Christmas 2018 CSS3 memberships music add-on color addon Elegant font comment add-on ArticleLimit tzportfolio+articles TZPortfolio+Pro Mayastyle Bug-fixes Fixes Elegantstyle Migration Grid Gallery TZPortfolio+2.1.7 TZPortfolio+2.1.9 Selena Template Styles WebsitePortfolio Responsive PortfolioStyles Joomla3.9.4 consulta Sass Photographer TreeFilter free template charity freelicense CharityAddon Joomdev JSN freetemplates TZPortfolio+2.1.4 AdvancedSearch XMas Free Amuda laborday Joomla4 TZPortfolio+2.2.0 Survey Gaia Layout Builder Portfolio Joomla templates freeversion Reyla Masonry ArtGallery Joomla3.9 gridgallery Folio template Joomla Template TetHoliday Christ Bootstrap3 Contentaddon Extensions overrides WeddingGallery Improvements Joomla 4 googlefont 30% OFF Joomlaextension License Joomla template collection Birthday Jollyany One-Click Install customlinks portfolioextension TZ Portfolio Plus OpenSource Joomlaextensions Addons InfiniteCarousel Joomla3.x JDArchi fundraising Zalta Salon Besley style K 2 migration Besley lightbox TZPortfolio+ BootstrapLibrary Creative tzportfolio+carousel Installation Carousel add-ons Jcontent Gallerycontent Article Portfolio templates updates K2 Bug-fix RealEstate Colors collaboration Joomla Content TZPortfolio2.1.5 100%discount Easter2019 freetemplate Free Extension Saleoff Search JDParis joomla3.10.x add-ons SingleArticle Goldena JD Gurukul TZPortfolio+2.1.6 JDAgency Festival megadiscount JDSalon ​ Profiler personallicense multilevelfilter Folio blackfriday Featurebox TZ Portfolio+ 2.1.2 supportcampaign Christmas domainregister WordPress personalbundle Pricing