New Landing How can we help? Themeforest Theme Support Dante Two characters in icon box?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #152103
    Dr.Peril
    Member
    Post count: 10

    Hey all,

    Quick question (I hope). The icon boxes allow you to enter a single character to over ride the selected icon. I’ve got a page full of boxes, each one relating to an episode of a podcast. Is there a way to enter two characters (as we’re now past 9 episodes)?

    Thanks,
    ~ Peril

    #152132
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Inside the file dante/swift-framework/shortcodes

    Replace this code inside the function sf_icon():

    
    	if (strlen($character) > 1) {
    			$character = substr($character, 0, 1);
    	}

    by this one

    
    	if (strlen($character) > 2) {
    			$character = substr($character, 0, 2);
    	}

    -Rui

    #154044
    Dr.Peril
    Member
    Post count: 10

    Fantastic thank you!

    #154119
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved. Great thanks to Rui.
    Thanks 🙂
    With Best Regards
    Mohammad

    #158827
    Dr.Peril
    Member
    Post count: 10

    Hey all,

    I hate to bump and old issue, but this doesn’t seem to work anymore.
    Following the most recent update, I reapplied the fix and while the numbers appear to include a point value initially, once one scrolls down enough to see the numbers and the counting up animation starts, it lands on the next highest .0 value. So 6.4 displays as 7, and 7.5 displays as 8.

    Thoughts?

    #158829
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide a link to the page where you have those icon boxes?

    -Rui

    #161967
    Dr.Peril
    Member
    Post count: 10

    Hi Rui,

    Sorry for my lateness, I’ve been away.

    The link is here: http://www.waiting4wrath.com and http://www.waiting4wrath.com/beers/

    I changed the shortcakes.php setting back to:

    if (strlen($character) > 2) {
    $character = substr($character, 0, 2);
    }

    But it doesn’t seem to work anymore…

    Thoughts?
    Thanks!

    #161971
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me wordpress admin login detail.
    Thanks
    Mohammad

Viewing 8 posts - 1 through 8 (of 8 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