New Landing How can we help? Cardinal Shortcode Generator/Swift Framework Error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Cardinal
  • #250840
    emford
    Member
    Post count: 8

    I have not been able to use the shortcode generator – I was getting an error message saying there was an invalid line in the sf-functions.php file. I tried uninstalling & re-installing the swift framework (I am using the latest version that came out earlier this month), and it didn’t make a difference. So, I went to the sf-functions php file, and found the faulty line foreach operation (line 2107):
    foreach ( $fontello_icons as $icon){
    Not knowing how to fix this directly, I removed the following code from the file, with the hopes it would fix the problem:
    ` // FONTELLO ICONS
    $fontello_icons = get_option(‘sf_fontello_icon_codes’);
    $fontello_list = ”;

    foreach ( $fontello_icons as $icon){
    $fontello_list .= ‘<li><i class=”icon-‘ . $icon . ‘”></i><span class=”icon-name”>’ . $icon . ‘</span></li>’;
    }

    $icon_list .= $fontello_list;`

    After deleting this code, I tried to open up the shortcode generator. This time, the error message was gone, so I thought it had worked. But when you click “Insert Shortcode” nothing happens.

    I found another post in support about this – but no solution was posted. Please advise.

    #251401
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please confirm you are using theme version 2.4.2 and please also confirm your Swift Framework is 1.7.7?

    Thanks.

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register