Created
June 12, 2017 12:51
-
-
Save ingozoell/3ef7001207e2c0a707982d73063a4251 to your computer and use it in GitHub Desktop.
WP Shortcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add Shortcode | |
function fn_marker_pink( $atts, $content = null ) { | |
// Attributes | |
extract( shortcode_atts( | |
array( | |
'color' => '#cf599b', | |
'fett' => '400' | |
), $atts ) | |
); | |
return '<span style="color: ' . $color . ' !important; font-weight: ' . $fett . ';">'.$content.'</span>'; | |
} | |
add_shortcode( 'marker_pink', 'fn_marker_pink' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment