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

 

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 JoomlaShine templates.
Buy our bundle and get 20% OFF from their template and extension.

Latest Posts

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 ...
06 July 2020
I'm so hyped up to introduce a brand-new TZ Portfolio+ style named Keira. Keira is intentionally designed to serve music purposes like featuring music albums, videos or displaying Musicians, Bands, and Artists in a beautiful manner. If you'...
21 June 2020
Today, it's my pleasure to introduce to you an awesome Joomla template designed and developed by our partner JoomlaBuff, called Growth. If you're creating a company's website relating to Corporate Finance and Tax planning businesses, Business consult...
11 June 2020
Hi guys, I'm so happy to inform you about a new release of TZ Portfolio+ 2.4.2 which comes with such a lot of bug-fixes, new stunning features, and some other improvements. I hope you'll enjoy all the new goodies in this update. It's time to fin...

Tag Cloud

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