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

Latest Posts

07 March 2023
Today I'm so pleased to announce that we have recently released 2 brand-new add-ons of TZ Portfolio+ extension, they are Pricing Content and Form Builder. There is no need to have coding skills to get familiar with these 2 addons, because they a...
25 February 2023
Hi folks, here is good news. We have recently released a new version of TZ Portfolio+ component to address some known issues encountered from the previous release and provide important improvements. Let's take a brief look at what is included in this...
09 December 2022
Hi guys, Today, I'm so pleased to introduce a new addon - Progress Bar which allows you to create progress bars (as its name says) to showcase important stats in a flexible way. Utilizing progress bar is a good way for your visitors to know more abou...
03 November 2022
Hi folks, We're so pleased to announce a new version of TZ Portfolio+ is already available now. Version 2.6.2 was released to address some minor bugs which are well-known in previous versions. Let's see what was fixed in this version.  TZ P...
26 October 2022
Halloween 2022 is just around the corner. All the witches are talking about this sale. So trick or treat? On this occasion, no trick at all, treat yourself with the special deal offered by TemPlaza.  Offer Details: 65% Discount On All Packa...

Tag Cloud

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