Viewing 10 posts - 16 through 25 (of 25 total)
  • #161679
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue.

    code remarks:-

    function sf_icon($atts, $content = null) {
    		extract(shortcode_atts(array(
    			"size"			=> "",
    			"image"			=> "",
    			"cont" 			=> "",
    			"float" 		=> ""
    		), $atts));
    		$image = 'fa-'.$image;
    		if ($cont == "yes") {
    			return '<div class="sf-icon-cont cont-'.$size.' sf-icon-float-'.$float.'"><i class="'.$image.' sf-icon icon-'.$size.'"></i></div>';
    		} else {
    			return '<i class="'.$image.' sf-icon sf-icon-float-'.$float.' icon-'.$size.'"></i>';	
    		}		
    	}
    	add_shortcode('icon', 'sf_icon');

    Thanks
    Mohammad

    #161988
    creatorofstuff
    Member
    Post count: 313

    Hi again. Thanks for resolving the issue, but it’s only resolved on the test site. I don’t exactly understand what you did there. Can you tell me how to apply this to my live site?

    Thanks!

    #162091
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit shortcodes.php file at /neighborhood/includes/swift-framework.

    Find this code:-
    if ($cont == "yes") {
    
    Change with:-
     $image = 'fa-'.$image;
     if ($cont == "yes") {

    Thanks
    Mohammad

    Thanks
    Mohammad

    #162683
    creatorofstuff
    Member
    Post count: 313

    Thank you but won’t this be a problem when the theme gets updated? How can I add this to the child theme?

    I have another question. Why is this necessary in the first place? Is it a problem in the theme, or is it because of a plugin I have, or what?

    Thank you!

    #162718
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I will inform to developer about this issue. So dont worry about it.
    Thanks
    Mohammad

    #162893
    creatorofstuff
    Member
    Post count: 313

    Thank you! I appreciate it. I will await further word…

    ๐Ÿ™‚

    #162919
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You will get this fix in next upgrade sure.
    Thanks
    Mohammad

    #162947
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @creatorofstuff

    How were you adding the icons? All of them should include the fa- prefix as standard, which is odd if they aren’t for you.

    Let me know so I can be sure of the issue here.

    Thanks,

    – Ed

    #163023
    creatorofstuff
    Member
    Post count: 313

    Hi Ed,

    Oh wow, this is very strange! When I originally created those pages, the icons did include the fa-prefix, but when I went back to look at the code just now, only the names were there without “fa-“. (Also, the icons used to be visible and now they aren’t.)

    I also notice that now when you wish to place an icon on the page through your visual editor, you can select them by image rather than name – great improvement!!!

    Perhaps that change somehow changed all of the “fa” parts of the code? I don’t know. It’s very mysterious. I only know that at some point all of the icons disappeared.

    But now I know how to fix them because of your question, so I’m happy. Sorry for the bother.

    Thank you! ๐Ÿ™‚

    #163043
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Glad you’ve sorted it ๐Ÿ™‚

    – Ed

Viewing 10 posts - 16 through 25 (of 25 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