Home Forums Flowfolio WordPress Theme Shortcodes

This topic contains 6 replies, has 2 voices, and was last updated by  Johnny 3 years, 9 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #600

    bkern01
    Participant

    Hi,
    I have 2 more issues or questions regarding the shortcodes (WP 3.6.)

    1) buttons text is not updated.

    When I add a button text, the text is not updated in the frontend.Please see attached images.

    2)

    #602

    bkern01
    Participant
    This reply has been marked as private.
    #604

    bkern01
    Participant
    This reply has been marked as private.
    #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

    #606

    Johnny
    Participant

    for your question 2, please reference attached image,
    thank you

    #610

    bkern01
    Participant

    Thank you very much! No. 1 the issue with the button is solved.
    No. 2 – the line break in the toggle shortcode works but if you want to simulate a paragraph by adding two line breaks [<br><br>] the toggle is broken. Maybe you consider this as an enhancement if you further develop this theme. The design of flowfolio is really nice and unique.
    Thank you and have a nice weekend.

    #612

    Johnny
    Participant

    Thanks for your advices.
    Best

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.