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
Monday, 17 December 2018
If you'd like to register, please fill in the username, password and name fields.

Search Blogs

Latest Posts

03 December 2018
Hi all, Thanks to your feedback after TZ Portfolio+ 2.0.8 released, we noticed that there was an error of extra-field's style on front-end, so version 2.0.9 is updated immediately to fix this bug. Please check it out**Change-log**- Fix error sty...
29 November 2018
Good day, Today, our team is so happy to make an official announcement of new release on TZ Portfolio+ version 2.0.8. This version is to fix bugs detected from previous version 2.0.7 and reveal some important improvements. In particularly, there is a...
20 November 2018
It's November. Black Friday is coming. On this special occasion, TZ Portfolio is so happy to offer you an amazing DISCOUNT 30% on ALL new memberships. This is your big chance to join our premium club, so that to have a superb acce...
13 November 2018
Here below is a specific guide of creating a donation page using Charity add-on for Joomla. We believe that this instruction is quite simple for you to read and acknowledge. Please follow these steps below: 1. Firstl...
31 October 2018
​Today, our team is so pleased to inform you about the presence of Comment add-on 1.0.3. This released is to fix a bug of not being compatible with TZ Portfolio Plus 2.0.7. ...