230 posts
  • Affiliate Level 4
  • Author Level 5
  • Collector Level 4
  • Weekly Top Seller
+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! :)

3535 posts
  • Power Elite Author
  • Author Level 12
  • Trendsetter
  • United States
+13 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 :)

230 posts
  • Affiliate Level 4
  • Author Level 5
  • Collector Level 4
  • Weekly Top Seller
+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 :)

483 posts
  • Affiliate Level 1
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
+1 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>
483 posts
  • Affiliate Level 1
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
+1 more
drsankarl
says

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

221 posts
  • 4 Years of Membership
  • United Kingdom
  • Author Level 3
  • Collector Level 2
+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.

501 posts
  • Affiliate Level 7
  • Author Level 10
  • Collector Level 2
  • Top Monthly Author
+10 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