Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1217170

    Hey guys,

    I just noticed an issue with my dashicons. I am using Contact Form 7 with some custom css in order to combine my validation messages with some icons. In the backend and the preview everything looks fine but on the live side they do not show up correctly (see screenshots).
    Correct: https://mega.nz/file/iWxzFAqQ#ClBnaK-AfwNalIkH3yyRk00Y94_pDqzFHZDMCnPf_7A
    Wrong: https://mega.nz/file/6H53RICK#vkNLBftH_mVt5uQ0OxITvSJbGv-gq8tgJ-e1Iv108FE

    This is the referred part of my custom css:

    div.wpcf7-mail-sent-ok:before,div.wpcf7-validation-errors:before {
        font: 26px/30px dashicons;
        margin-right: 16px;
        vertical-align: middle;
    }
    div.wpcf7-mail-sent-ok:before {
        content: "\f147";
    }
    div.wpcf7-validation-errors:before {
        content: "\f158";
    }

    Unfortunately this code does not work properly anymore.

    Thanks a lot!
    David

    • This topic was modified 4 years, 5 months ago by ninasmith.
    #1218284

    Hey ninasmith,
    Sorry for the late reply, I don’t see a login to your site, I only see a password, please check.

    Best regards,
    Mike

    #1218390

    Hey Mike,

    Sorry, I completely forgot to add the username. I have added it in my initial request.

    Kind regards and happy Pentecost,
    David

    #1219034

    Hi,
    Sorry for the late reply and thanks for the login, if I understand correctly you want the error message to show a red X
    2020-06-03_070558.png
    I see the red X, so I’m not sure what the issue is.

    Best regards,
    Mike

    #1219060

    Hey Mike,

    Thanks for having a look. As I mentioned in my request, I only have that issue in the live mode. When I am logged in, everything works fine. But visitors, who are not logged in to WordPress get a little square instead of the x and the tick (see this screenshot: https://mega.nz/file/6H53RICK#vkNLBftH_mVt5uQ0OxITvSJbGv-gq8tgJ-e1Iv108FE).

    If it is important: I have tested this on several browsers – Safari, Chrome and Firefox.

    Thanks a lot and kind regards,
    David

    #1220083

    Hi,
    Sorry for the late reply, ok thanks for explaining, so I logged out and saw the error, but the browser didn’t give the CORs error that I expected to get from your screenshots, or any other errors to explain why the dashicons are not showing when logged out.
    I did find a solution for a similar issue, which was:

    Usually this is caused by an optimisation plugin that lets you disable dashicons. If you have any optimisation plugins installed, please check their options for anything that mentions dashicons, and make sure they’re enabled.

    If that doesn’t help I came up with a css solution, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    div.wpcf7-validation-errors:before {
        content: "\e813" !important;
        color: red !important;
        font-family: entypo-fontello !important;
    }
    div.wpcf7-mail-sent-ok:before {
    	content: "\e812" !important;
    	color: green !important;
        font-family: entypo-fontello !important;
    }

    this will substitute the dashicons font for the entypo-fontello font, after applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1220321

    Hey Mike,

    Thanks a lot… your css worked perfectly! I do not use any optimization plugins btw.

    Have a good one and kind regards,
    David

    #1220327

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Dashicons broke in Contact Form 7’ is closed to new replies.