2017-06-17 3 views
-1

私は特定の情報とリンクを追加するためのワードプレステーマを持っています。私は、URLへのリンクを管理するコードが少しあります。現時点では、リンクはユーザーが私たちのサイトから離れることを意味する同じタブで開きます。新しいタブでリンクを開く必要があります。 PHPの開発者ではない私はこれを行うにはいくつかの助けを行う方法を知らない。ここでは、コードは次のようになります。PHPのリダイレクトリンク

<?php if ($launch) : ?> 
      <div class="project-view"> 
       <strong><?php _e('Standard', 'themify'); ?></strong> 
       <a href="<?php echo esc_url($launch); ?>"><?php _e('View Standard', 'themify'); ?></a> 
      </div> 
    <?php endif; ?> 

おかげ

答えて

-1
<?php if ($launch) : ?> 
     <div class="project-view"> 
      <strong><?php _e('Standard', 'themify'); ?></strong> 
      <a href="<?php echo esc_url($launch); ?>" target="_blank"><?php _e('View Standard', 'themify'); ?></a> 
     </div> 
<?php endif; ?> 
+0

恐ろしい - 感謝 – gillers322

関連する問題