WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using CSS to target a new window (3 posts)

  1. ninjaninja
    Member
    Posted 1 year ago #

    I want to make the facebook & twitter icons in the top right hand corner of my site open in a new window.

    I tried doing this by adding target-new: window; to my css file (each button has its own style e.g .twitter and .facebook) but this didnt work

    is there another way i can do this?

    http://ninjaninja.co.uk/

    Thanks!

  2. LastForOne
    Member
    Posted 1 year ago #

    you've to add the target='_blank' attr to the <a> for example:

    <a href="http://www.twitter.com/ninjaninjablog" class="twitter" target="_blank">Twitter</a>

    Peace,
    LastForOne

  3. ninjaninja
    Member
    Posted 1 year ago #

    i cant believe i didnt think of that - so obvious now! Ive amended it in the header.php

    Thank you :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.