Hi,
I've searched the codex and the forums and surprisingly have found nothing about this!
What I'd like to do is to get the WordPress credits link to open in a new tab - pretty standard practice I believe, when clicking a link to a different site. However all I've found is info about removing/disabling it! I presume I'd put in something like: target="_blank" though I've read that it's not valid now??
The only place I can find to put it in the Twenty Eleven theme is in the Footer.php file, in the code below:
<div id="site-generator">
<?php do_action( 'twentyeleven_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
</div>
but I'm not sure how to add it into a php file (only in html).
I already have a child theme with a functions.php file (though nothing in it as yet!), but I'm at a complete loss as to how to do this probably very simple thing!
I did have a go, and tried it here...
<div id="site-generator">
<?php do_action( 'twentyeleven_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven', target="_blank" ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
</div>
but it must have broken it totally as I ended up with no footer at all!
So any help would be greatly appreciated - and I'm sure it would be something that others are possibly interested in too...
Thanks in advance.