How can I make the read more buttons on the portfolio pop outs open in a new tab? Im using the ouera theme and I want to use some websites in the portfolio section. But when you click on 'read more' it opens the link in the same window, how can I make it open in a new tab? I've tried putting the code in the box (screenshot attached) but it doesn't work when saved
Hello,
How can I make the read more buttons on the portfolio pop outs open in a new tab? Im using the ouera theme and I want to use some websites in the portfolio section. But when you click on 'read more' it opens the link in the same window, how can I make it open in a new tab? I've tried putting the code in the box (screenshot attached) but it doesn't work when saved
Thanks,
Hi!
You need to open file : ourea/shortcode.php then, fill '// Button'
change code :
<?php if($style=='style2'){ ?>
<a href="<?php echo esc_attr($btnlink); ?>"class="btn-projects"><?php echo esc_attr($btntext); ?></a>
to:
<?php if($style=='style2'){ ?>
<a href="<?php echo esc_attr($btnlink); ?>"class="btn-projects" target="_blank"><?php echo esc_attr($btntext); ?></a>
Good luck!
perfect, thank you!