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

Our Partner’s Templates

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

Latest Posts

21 December 2020
Christmas is here, the most awaited festival of the year. I guess that you're quite busy with preparing the Christmas tree and decorating your house but don't forget to lighten your website as well. On this ultimate festive e...
26 November 2020
This November comes with the most expected shopping day that everyone is looking forward to grabbing the best deals. It's Black Friday. If you missed the previous Halloween sale, don't worry. Black Friday will save your life. On this occasion, TZ Por...
22 November 2020
Why do you need an online gallery? 1. For photographers, owning a website is a necessary way to showcase their best photography portfolio to the entire world. Then you can easily promote your brand to a larger amount of clients. An online galler...
24 October 2020
Happy Halloween!Halloween is coming into the air. We would like to celebrate this event by giving a special offer, so you can get a discount of up to 65% for any purchase. Wow! that's so amazing, right?  This offer won't last long, just fro...
03 August 2020
​After the release of Keira style, Maya is the next awesome style you should give it a shot if you're looking for a solution to enhance the image gallery. You're working as a photographer, blogger, a stylist, fashionista, or an artist, and ...

Tag Cloud

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