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
Sunday, 21 July 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 JoomDev templates.
Buy our bundle and get 15% OFF from their template and extension.

Latest Posts

11 July 2019
Dear our beloved customers,Hope you're doing well there!TZ Portfolio team would like to shout out a big "thank you" for all of your love and sincere support for a long time. We've already been through different versions of TZ Portfolio+ and there is ...
30 June 2019
Hi guys, Are You are a photographer and specialized in capturing wedding shots for couples? If so, It is necessary for you to have an online presence which is to build credibility on every clients visiting your website. On the top of that, findi...
26 June 2019
Hi guys, Today, our team are so happy to announce that TZ Portfolio+ 2.2.8 is already public with some bug-fixes and improvement. There were several well known issues detected from version 2.2.7 and we really appreciate all of your kind feedback that...
17 June 2019
Hi guys, TZ Portfolio+ 2.2.7 has recently been released with latest improvements. Especially, since this version, both Free and Pro versions are included in only one package and according to this change, anyone who has a valid license needs to v...
11 June 2019
Hi folks, Today I'm so happy to announce that TZ Portfolio+ 2.2.7 is already released. In this new version, we made some bug-fixes of well known issues and important changes. Let's have a look at its changelog to see which issues has been addressed a...

Tag Cloud