227 posts
  • Has referred 100+ 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
+1 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! :)

3503 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 :)

227 posts
  • Has referred 100+ 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
+1 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

221 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.

501 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by