Home Forums Flowfolio WordPress Theme Shortcodes Reply To: Shortcodes

#605

Johnny
Participant

hi, please following below steps to resolv this:
1. open file shortcodes.php: appearance/editor/shortcodes.php
2. find this block

function ux_button($atts){
			extract(shortcode_atts(array(
			'color' => 'black',
			'link' => '#',
			'text' =>'button'
		), $atts));
			$output = '<a class="btn ' .$color.'" href="'.$link.'">'.$text.'</a>';
			return do_shortcode($output);
		}

replace it with

function ux_button($atts, $content){
			extract(shortcode_atts(array(
                'text' => 'button',
                'link' => '#',
                'color' => 'black'), $atts));
			$output = '<a class="btn ' .$color.'" href="'.$link.'">'.$content.'</a>';
			return do_shortcode($output);
		}

3. click ‘update file’ button

Good luck