A Customizer control to make footer credits editable.
This plugin only works with themes that have added support.
Footer Credits provides a standardized method for making theme credits editable. It registers a new section and fields in the Customizer for modifying the credits and choosing how they appear.
Theme authors, let your users and customers know your theme supports the Footer Credits plugin.
If your theme doesn’t work with Footer Credits, ask the developer to add support. Instructions can be find in the Other Notes section.
If you’re a theme author and want to add support, all you need to do is pass the default credits string through a footer_credits
filter.
<?php if ( ! function_exists( 'themename_credits' ) ) : /** * Theme credits text. */ function themename_credits() { $text = sprintf( __( '%s by Cedaro.', 'themename' ), '<a href="https://www.cedaro.com/wordpress/themes/hyalite/">Hyalite</a>' ); echo apply_filters( 'footer_credits', $text ); } endif;
<footer class="site-footer"> <div class="credits"> <?php themename_credits(); ?> </div> </footer>
Install like most other plugins. Check out the codex if you have any questions.
After installing:
Tip: Insert {{year}} in your text to have the year update automatically.
load_plugin_textdomain()
in favor of just-in-time text domain loading available since WordPress 4.6.