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

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
Friday, 26 April 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 JoomlaShine templates.
Buy our bundle and get 20% OFF from their template and extension.

Latest Posts

22 April 2019
Hi guys, Today, we're so delighted to announce that we've just released important updates for 5 stunning styles including Besley, Selena, Vani, Gaia, and Zalta. If you're using one of these styles, it's worth to take your time to look at all the upda...
20 April 2019
To make your portfolio site become more attractive and good looking, choosing a suitable font for design is not only important but quite tough. That's the reason why today I'm writing this article to share with you 20 best font for your por...
19 April 2019
Hi folks, Today, we would like to give you a good new about the release of TZ Portfolio+ version 2.2.2. This version contains some bug-fixes and update of system style Elegant. Please take a brief look at its change-logs and update this latest versio...
18 April 2019
Hi folks, Today, TZ Portfolio team are so pleased to announce that another brand-new style for TZ Portfolio+ has been released. This is a clean and simple style that supports all media types, and comes perfect for elegant portfolio, photograph and we...
18 April 2019
Easter 2019 is coming soon on sunday, April 21st. We decided that this is a great time to express our appreciation to our beloved users who have been accompanying with us for such a long time. On this occasion, TZ Portfolio is so ...