You appear to be a bot. Output may be restricted
Description
Produces the "Return to Top" link.
Supported shortcode attributes are:
- after (output after link, default is empty string),
- before (output before link, default is empty string),
- href (link url, default is fragment identifier '#wrap'),
- nofollow (boolean for whether to make the link include the rel="nofollow"
- attribute. Default is true),
- text (Link text, default is 'Return to top of page').
Output passes through genesis_footer_backtotop_shortcode
filter before returning.
Usage
$string = genesis_footer_backtotop_shortcode( $atts );
Parameters
- $atts
- ( array|string ) required – Shortcode attributes. Empty string if no attributes.
Returns
string Output for footer_backtotop
shortcode.
Source
File name: genesis/lib/functions/deprecated.php
Lines:
1 to 18 of 18
function genesis_footer_backtotop_shortcode( $atts ) { _deprecated_function( __FUNCTION__, '3.0.0' ); $defaults = [ 'after' => '', 'before' => '', 'href' => '#wrap', 'nofollow' => true, 'text' => __( 'Return to top of page', 'genesis' ), ]; $atts = shortcode_atts( $defaults, $atts, 'footer_backtotop' ); return apply_filters( 'genesis_footer_backtotop_shortcode', '', $atts ); }