WordPress.org

Ready to get started?Download WordPress

Forums

onclick header, open in top frame / new window? (1 post)

  1. Family Reflections
    Member
    Posted 4 years ago #

    PAGE IN QUESTION

    Using...

    <div id="header" onclick="window.location.href='http://famreflections.com/'" style="cursor: pointer;"></div>
    
    	<div id="headerimg">
    		<h1>
                       <a href="<?php echo get_option('home'); ?>/">
                         <?php bloginfo('name'); ?></a>
                     </h1>
    		<div class="description">
                       <?php bloginfo('description'); ?>
    		</div>
    	</div>

    ...to make my header clickable. I would like it to open the link in the top frame and / or new window. Where would I add the code for that and what would the code be?

    thank you

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Family Reflections
  • This topic is not resolved
  • WordPress version: 2.8.5