Let's fly creativity!

1 minute reading time (233 words)

How to open Portfolio articles in new window/tab

How-To-Open-Portfolio-Articles-In-New-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); ?>
                    </a> 

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'); ?>
            </a> 

 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

 

Search Blogs

Our Partner’s Templates

TZ Portfolio is working perfectly with JoomlaShine templates.
Buy our bundle and get 20% OFF from their template and extension.

Latest Posts

07 May 2020
We all know that human beings over the world have been suffering a hard time for months because of the Covid-19 pandemic. There are a lot of vulnerable children, families, workers, homeless persons, etc are in big trouble and they need emergency...
17 April 2020
The ongoing spread of COVID 19 has become one of the biggest threats to our health and caused downgrades in the global economy. In these times, we're well aware that people all over the world are been through such a hard time ever. That's the re...
07 April 2020
Hi guys, Easter day 2020 is just around the corner. Are you keen on adding more sweetness to your Easter chocolates? Have that in mind, we would like to offer you a mega sale on this occasion. In particular, you'll have a chance to grab TZ Portfolio+...
30 March 2020
TZ Portfolio+ is one of the best free Joomla portfolio extensions providing a flexible and versatile solution to not only portfolio websites but others. A portfolio is very important for creative persons like photographers, artists, designers to show...
22 March 2020
I'm so pleased to inform you about another new version of TZ Portfolio+ recently released. This version comes with some bug-fixes and improvement in domain registration for Pro users. Please take a brief look at what's updated.1111Active domain for p...

Tag Cloud

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