[wp-trac] [WordPress Trac] #22292: Class needed for wordpress link
WordPress Trac
noreply at wordpress.org
Fri Oct 26 22:02:55 UTC 2012
#22292: Class needed for wordpress link
-----------------------------+---------------------------
Reporter: bigrob8181 | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Bundled Theme
Version: | Severity: normal
Keywords: |
-----------------------------+---------------------------
In #22095, r22207, r22214:
Removing rel=generator removed the ability to easily hide the "Powered by"
link. Before, you could just use css to hide it and now, you would have to
add the footer.php to the child theme or edit the parent theme.
It would be awesome if a class could be added to the link to make this
easy.
{{{
#!css
.site-info a.wordpress_footer_link {
display:none;
}
}}}
{{{
#!php
<footer id="colophon" role="contentinfo">
<div class="site-info">
<?php do_action( 'twentytwelve_credits' ); ?>
<a href="<?php echo esc_url( __(
'http://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e(
'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"
class="wordpress_footer_link"><?php printf( __( 'Proudly powered by %s',
'twentytwelve' ), 'WordPress' ); ?></a>
</div><!-- .site-info -->
</footer><!-- #colophon -->
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22292>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list