简体   繁体   中英

add target blank on custom php code

How can I open a link in another window?

<?php if(get_option_tree('rss')) { ?>
<a href="<?php get_option_tree('rss',$theme_options,'true'); ?>" id="rss" title="RSS" class="tt_top"></a><?php } ?>

您需要将target="_blank" 到'a'标签

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM