Before you ask please READ THIS

Open "Works" Link In New Window

edited August 2014 in Superior Posts: 66
I'm creating a portfolio of my work and noticed there's an area where I can put the client's website. When I clicked on the link though, it opened in the same window as my website. How can I change this so the link opens in a new window so they don't leave my site?

Comments

  • AirAir
    Posts: 10,970
    HI there:-)

    Go to superior\advance\cpt_work.php line~143, and change:
            //internet address
            $temp = get_post_meta(get_the_ID(), '_www', true);
            if(strlen($temp)){
                echo '<a class="project-site" href="'.$temp.'">'.__fe('Visit Site').'</a>';
            }
    to
            //internet address
            $temp = get_post_meta(get_the_ID(), '_www', true);
            if(strlen($temp)){
                echo '<a class="project-site" target="_blank" href="'.$temp.'">'.__fe('Visit Site').'</a>';
            }
    If you want to have this modification forever :-) Then you will have to copy whole function a13_work_meta_data() to functions.php in child theme. More info http://apollo13.eu/docs/superior/#!/modification_of_theme_changing_theme_functions

    Btw. Our new theme is avaialble on ThemeForest. You were interested so I leaving this notice ;-) http://themeforest.net/user/apollo13/portfolio
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion