This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Icon shortcode in 1.2

  • Creator
    Topic
  • #10195
    iphoenix
    Participant

    modify line 416:

    [code]
    function themeblvd_shortcode_icon( $atts, $content = null ) {
    $output = ”;
    $default = array(
    ‘image’ => ‘accepted’,
    ‘align’ => ‘left’ // left, right, center, none
    );
    extract( shortcode_atts( $default, $atts ) );
    $align != ‘none’ ? $align = ‘ class="align’.$align.’"’ : $align = null;
    $output = ”;
    return $output;
    }
    [/code]

    to
    [code]
    function themeblvd_shortcode_icon( $atts, $content = null ) {
    $output = ”;
    $default = array(
    ‘image’ => ‘accepted’,
    ‘align’ => ‘left’ // left, right, center, none
    );
    extract( shortcode_atts( $default, $atts ) );
    $align != ‘none’ ? $align = ‘ class="align’.$align.’"’ : $align = null;
    $output = ”;
    return $output;
    }
    [/code]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #10199
    iphoenix
    Participant

    *only for TB-shortcode v. 1, update to fix.

    #10202
    Jason Bobich
    Keymaster

    I’m not following. What is this topic about?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.