Home Forums WoodMart support forum CUSTOM JS PROBLEM VERSION 4

CUSTOM JS PROBLEM VERSION 4

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #136340

    newsprince
    Participant

    Hello.

    In version 4 the symbol > is interpreted like this in the front-end & g t ; i added the spaces cause it was showing like > and if you add a javascript code is not working. Previously it was working.

    Thank you.

    #136347

    Artem Temos
    Keymaster

    Hello,

    Could you please check how it works after you replace gt; with > symbol? Does it become work correctly after this?

    REgards

    #136349

    Joe
    Participant

    Artem,

    Please see my duplicate issue on this.

    It’s not only > in javascript, it’s in CSS and it’s stripping \ out as well. I have tried manually replacing with >, but when it creates the file, it changes it to the html code version.

    https://xtemos.com/forums/topic/4-0-custom-css-and-js-issue/

    #136351

    newsprince
    Participant

    No in the Custom JS settings box i add this symbol > part of the code is

    if( $(window).width() >= 1024 ) {

    but in the front end in console this error displays

    https://gyazo.com/b33c78dd0c119ee98859e780a27ead4c

    #136353

    Artem Temos
    Keymaster

    Try to edit the file inc/options/class-sanitize.php and replace this part

    case 'editor':
    	$val = wp_kses_post( $val );
    	break;

    with this one

    case 'editor':
    	break;

    Kind Regards

    #136358

    Artem Temos
    Keymaster

    You will also need to resave settings after this change.

    #136360

    newsprince
    Participant

    Yes now it works. Thank you.

    Side question.

    .woodmart-show-sidebar-btn:before {
    content:”f115″;
    font-size:27px;
    margin-right:10px;
    font-weight:400;
    font-family: “woodmart-font”;
    }

    I had this CSS code. The contect f115 was showing the filter icon but now it shows F115 instead of the icon.

    What happened to font-family: “woodmart-font”;

    https://gyazo.com/1391cedf5f01455515c76f80b575a238

    instead of

    https://gyazo.com/03f3f9edfd119fdf503df7a994d19d82

    #136363

    newsprince
    Participant

    Never mind. It was that thing above, affected also the CSS, stripped out the left dash.

    #136364

    newsprince
    Participant

    Edit again

    .woodmart-show-sidebar-btn:before {
    content:”\f115″;
    font-size:27px;
    margin-right:10px;
    font-weight:400;
    font-family: “woodmart-font”;
    }

    The code is that.

    But when you save it it strips out the left dash and after the next save there is again problem. Instead of the icon the F115 shows up

    #136454

    Artem Temos
    Keymaster

    We will release an update today and fix all these issues.

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