View Single Post
Old 2006-06-02, 02:44 PM   #8
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by Erick G
Hey
Can someone tell if there is a way to set links and thumbs in the main index posts to target="_blank" so I dont have to do it manually on each post.

thanks
If I understand you want the links in your posts to open in a new window and not all your links to do that.

You could edit "The Loop" which starts here
Code:
<?php define('WP_USE_THEMES', false); get_header(); ?>
adding <base target="_blank" /> after that line. Then before the end of the loop, which looks something like this
Code:
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
you could set the base target back to self.

At least in theory, I think this should work but you may have to play with the exact location of the base target self code so that if you allow comments they don't open in a new window.

If your talking about links in a sidebar, there is a button on the bottom of the add link page that will allow you to set the link for blank
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote