New Landing How can we help? Themeforest Theme Support Dante Row overlay opacity broken

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Dante
  • #273409
    enricotal70
    Member
    Post count: 8

    The css that sets the opacity for the color overlay has started showing an error. It uses a comma instead of a dot, e.g.
    opacity: 0,6;
    this way the browser doesn’t parse it and the opacity defaults to 1, so the background image is not visible.

    I don’t know what triggered the error, but both wp and dante are up to date.

    #273439
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Where and how are you getting this error? just need a screenshot.
    Thanks
    Mohammad

    #273451
    enricotal70
    Member
    Post count: 8
    This reply has been marked as private.
    #273463
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    What’s your login so I can check the issue

    – Kyle

    #273500
    enricotal70
    Member
    Post count: 8
    This reply has been marked as private.
    #273511
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Did this work previously?

    – Kyle

    #273515
    enricotal70
    Member
    Post count: 8

    yes, it stopped working this week.

    #273516
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok I will check this with the developer for you

    – Kyle

    #273549
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    I tried to replicate that in a development server and it worked fine. The opacity was correctly with 0.65 instead 0,65

    Will need ftp credentials in a private reply just to be able to check your current server settings regarding the decimal separator to determine what separator character is being used.

    Do you know if any software/settings was changed recently in that server?

    Thanks

    -Rui

    #273572
    enricotal70
    Member
    Post count: 8

    Unfortunately we are on a local ssh server and I don’t have credentials to give out.

    It is possible that something on the server was changed, I’ll have to ask to our sysadmin.
    In the meantime thank you for having pointed me to that direction.

    #273573
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    In that case you can try this line of code inside the functions.php, but you must change the wp-debug to true inside the wp-config.php

    Turn on the WP_DEBUG inside the wp-config.php

    define( 'WP_DEBUG', true );

    Add this line of code in the end of the functions.php

    var_dump( localeconv() );

    This will echo your decimal places settings.

    Are you on a Windows server?

    -Rui

    #275151
    enricotal70
    Member
    Post count: 8

    The decimal separator was the comma,
    I searched a bit around and added this line of code to theme functions.php to use server’s locale settings for numeric separators.
    setlocale(LC_NUMERIC, 'C');

    The problem looks solved, hope it hans’t side effects. I don’t know exactly why it showed un in the first place, though.

    #275155
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great!

    – Kyle

    #275158
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    That was what I thought. It shouldn’t be the comma, you did right to change it.
    Glad it’s sorted.

    -Rui

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