Hi Team,
I am also facing the same issue with the short code.
This is what I am using in my website.
////////////////////////////////////////////////////////////////////////
Function Part
/////////////////////////////////////////////////////////////////////
function buttonbrown_function( $atts = array(), $content = null ) {
// set up default parameters
extract(shortcode_atts(array(
‘url’ => ‘#’,
‘position’ => ‘#’
), $atts));
return ‘‘ . $content . ‘‘;
}
add_shortcode(‘button-brown’, ‘buttonbrown_function’);
////////////////////////////////////////////////////////////////////////////
UI Part
////////////////////////////////////////////////////////////////////////////////
[button-brown url=”https://apple.com” ] Download from iTunes[/button-brown]
-
This reply was modified 5 years, 10 months ago by Harman Gomez.