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, 17 February 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

14 February 2019
Based on the interesting topic of education, there is another Joomla template recently developed, which is perfectly integrated with TZ Portfolio+ by our partner JoomDev. It's called - JD Paris. This template is the best match for any websi...
31 January 2019
TZ Portfolio team wish all of our beloved customers a new year full of luck, happiness, and prosperity. To thank for having accompanied with us during years and made such great contributions to the improvement of TZ Portfolio+, we...
17 January 2019
Dear our beloved clients, Today, We're so pleased to introduce a new template named JD Gurukul which is developed and designed by our Partner JoomDev. JD Gurukul is a complete solution for schools, universities, institutes, colleges​ a...
16 January 2019
Hey guys, Today, we're so pleased to announce that TZ Portfolio+ version 2.1.2 is already available. Now you can download and get some bugs below absolutely fixed. If you get any issues during this update, please report them to us and we'll help...
13 January 2019
Are you planing to start building a website for some specific purposes? So portfolio is concerned as an essential part that you're supposed to pay much attention to. Obviously, it takes time to looking for an ideal template that suits your expectatio...