223 posts
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Has been part of the Envato Community for over 5 years
+2 more
Foos says

Hey guys,

can someone help!?

On my website: http://www.flyerfolio.com I want, that after a click on an image (flyer) a certain link will open in a new window and not as now the subpage.

If you want to help and need more information please contact me or reply here.

Of course, I would pay for good help! :)

3454 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark Moderator says

The basic idea will be to add target="_blank" to those anchor elements. You’ll likely need to modify a template to do that (best to do it in a child theme). If you want certain items to open in new windows and others not to, you can put a conditional statement in the template based on a custom field meta value you can set on your post.

Hope that helps get you aimed in the right direction :)

223 posts
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Has been part of the Envato Community for over 5 years
+2 more
Foos says

Thanks for your replay. Definitely the right direction.

But I have not the needed skills to do this – therefore I search for a coder :)

406 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in India
+2 more
drsankarl says

hi,
open your theme, go to folder lib-> php -> post.class.php
open the post.class.php in any text editor.
find the below code.

function list_view_thumbs_small($post,$template = ‘blog_page’ ) { /returns markup for small boxes when list view thumbs is selected/

$classes = tools::login_attr($post->ID, 'nsfw');
   $size = 'thumbs_small';
<di class="hovermore" style=""> 
           


replace this code

<a class="mosaic-overlay" href="#post-<?php echo $post->ID; ?>" style="display: inline; ">
</a>


with this
<a class="mosaic-overlay" href="#post-<?php echo $post->ID; ?>" target="_blank" style="display: inline; ">
</a>
406 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in India
+2 more
drsankarl says

the code is getting screwed up but i think you get the picture

219 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
NuclearThemes says

Am I correct in assuming you want the associate graphic river link to open in a new window?

Anyway I’ve sent you an email and look forward to hearing from you.

496 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+8 more
pixelentity says

You could use js for that by adding somewhere in header.php something like http://pastie.org/8470883

by
by
by
by
by
by