Home › Forums › WoodMart support forum › CUSTOM JS PROBLEM VERSION 4
CUSTOM JS PROBLEM VERSION 4
- This topic has 9 replies, 3 voices, and was last updated 5 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
August 6, 2019 at 7:56 pm #136340
newsprinceParticipantHello.
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.
August 6, 2019 at 8:10 pm #136347
Artem TemosKeymasterHello,
Could you please check how it works after you replace
gt;
with>
symbol? Does it become work correctly after this?REgards
August 6, 2019 at 8:17 pm #136349
JoeParticipantArtem,
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/
August 6, 2019 at 8:20 pm #136351
newsprinceParticipantNo in the Custom JS settings box i add this symbol
>
part of the code isif( $(window).width() >= 1024 ) {
but in the front end in console this error displays
August 6, 2019 at 8:36 pm #136353
Artem TemosKeymasterTry to edit the file
inc/options/class-sanitize.php
and replace this partcase 'editor': $val = wp_kses_post( $val ); break;
with this one
case 'editor': break;
Kind Regards
August 6, 2019 at 8:42 pm #136358
Artem TemosKeymasterYou will also need to resave settings after this change.
August 6, 2019 at 8:45 pm #136360
newsprinceParticipantYes 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
August 6, 2019 at 8:53 pm #136363
newsprinceParticipantNever mind. It was that thing above, affected also the CSS, stripped out the left dash.
August 6, 2019 at 8:57 pm #136364
newsprinceParticipantEdit 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
August 7, 2019 at 8:29 am #136454
Artem TemosKeymasterWe will release an update today and fix all these issues.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register