• Resolved 4tha2000s

    (@4tha2000s)


    When clicking on an item using the portfolio grid layout, the item opens in the same page tab. I want the portfolio item to open in another tab for a better user experience. How can I make portfolio items open in a new tab?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Organic Themes

    (@organicthemes)

    Hello,

    Within the loop-cat.php file you could edit the following line:

    <a class="img-text" href="<?php the_permalink(); ?>" rel="bookmark"><h2 class="title"><?php the_title(); ?></h2></a>

    To this:

    <a class="img-text" href="<?php the_permalink(); ?>" target="_blank" rel="bookmark"><h2 class="title"><?php the_title(); ?></h2></a>

    That should result in portfolio posts opening in a new tab. I hope this helps.

    David

    Thread Starter 4tha2000s

    (@4tha2000s)

    Hello David,

    Thank you for providing this line of PHP code to make a modification to the theme. It worked. My posts now open up under a new tab. Again, thank you!

    Theme Author Organic Themes

    (@organicthemes)

    No prob ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Portfolio Items Opening In The Same Tab’ is closed to new replies.