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



No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Wednesday, 18 September 2019
If you'd like to register, please fill in the username, password and name fields.

Search Blogs

Our Partner’s Templates

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

Latest Posts

15 September 2019
Dear all TZ Portfolio lovers, TemPlaza have been through a long journey in developing not only premium WordPress Themes and Joomla Templates, but powerful extensions like TZ Portfolio+. Thanks to the great base of TemPlaza, TZ Portfolio+ has bee...
04 September 2019
Today, TZ Portfolio team would like to introduce you a new release of a brand-new Joomla template which works perfectly with TZ Portfolio+. It's called JD Salon designed and developed by our partner JoomDev. JD Salon is a specialized Joomla Template ...
20 August 2019
Hi folks, Our team are so pleased to announce that we have recently released a brand-new module named TZ Flex Grid 1.0.0. This module provides a set of different properties that is represented in flexible and stunning styles. Today, I would like...
17 August 2019
In current, there are dozens of CSS frameworks available for you to pick up one. However, It can be said that Bootstrap is playing an important role as the trendiest front-end framework that is most popularly used by many website developers all over ...
11 August 2019
Howdy! You've got a good news to make your weekend special.Honestly, we are well aware of that you're responsible to ensure your projects to run smoothly without any unwanted issues. That's reason why we are trying to put a high f...

Tag Cloud

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