Home › Forums › Legacy Support › Support queries › Update Issues › How to Edit an icon and Translate V4
- This topic has 14 replies, 2 voices, and was last updated 3 years, 9 months ago by kenetork.
Viewing 15 posts - 1 through 15 (of 15 total)
-
AuthorPosts
-
February 6, 2021 at 9:30 pm #338554kenetorkParticipantHi, I need to edit an icon from the theme and I need to edit thatword as well,I tried with Loco translate as usual, but nothing, can you please letme know how to do this 2things? please see this: https://prnt.sc/yka66h Thnaks!February 8, 2021 at 3:11 pm #338800Anshuman SahuKeymasterTo edit the labels please edit the profile menu : https://wplms.io/support/knowledge-base/adding-buddypress-menu-items-to-profile-navigation-4-0/ For icon please follow : https://docs.wplms.io/developer-guide/customisation-tips#change-icons-of-components-in-pwaFebruary 12, 2021 at 4:08 am #339687kenetorkParticipantHi, I tried adding this icon, its called. file-text on the feather website, it says this: https://prnt.sc/z67htg But your code is not qorking properly, it says: this is you code, how to edit it to add the icon, there you have: add_filter('vibebp_component_icon'function($icon,$compoent({ if($id == 'wishlist'){ // Check component id , set $icon as svg $icon = '<svg width="24" height="24" viewBox="0 0 24 24" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <path d="M15.473,19.593C14.365,20.679 13.198,21.812 12,23C5.57,16.619 0,11.853 0,7.192C0,0.423 8.852,-1.154 12,4.248C15.125,-1.114 24,0.4 24,7.192C24,7.938 23.844,8.688 23.577,9.445C22.461,8.543 21.043,8 19.5,8C15.916,8 13,10.916 13,14.5C13,16.563 13.97,18.401 15.473,19.593Z" style="fill-opacity:0.6;fill-rule:nonzero;"/> <path d="M19.5,10C17.017,10 15,12.015 15,14.5C15,16.985 17.017,19 19.5,19C21.983,19 24,16.985 24,14.5C24,12.015 21.983,10 19.5,10ZM22,15L20,15L20,17L19,17L19,15L17,15L17,14L19,14L19,12L20,12L20,14L22,14L22,15Z" style="fill-rule:nonzero;"/></svg>'; } return $icon; },10,2); Please test the code fot that icon and let me know the code wprking proplery please so I can copy ans paste the snippet, thanks!February 12, 2021 at 12:58 pm #339778Anshuman SahuKeymasterHi you have to add the code in wplms-customizer.php file in wplms customizer plugin via ftp .February 13, 2021 at 9:34 pm #340068kenetorkParticipantBut i don' have that plugin, pelase send it to me, and please edit the code so it can replace the current one with this new one called: file-text I didn't know how to do it, please!February 15, 2021 at 3:35 pm #340335Anshuman SahuKeymasterYou can get the latest plugins version from here Vibebp: https://wplms.io/verify-purchase/?purchase_code=XXX&plugin=wplms.io/vibebp.zip Wplms Plugin: https://wplms.io/verify-purchase/?purchase_code=XXX&plugin=wplms.io/wplms_plugin.zip replace XXX with your theme purchase code : https://wplms.io/support/knowledge-base/how-to-find-buyer-api-key-in-themeforest/February 15, 2021 at 8:30 pm #340376kenetorkParticipantThis code: add_filter('vibebp_component_icon'function($icon,$compoent({ if($id == 'wishlist'){ // Check component id , set $icon as svg $icon = '<svg width="24" height="24" viewBox="0 0 24 24" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <path d="M15.473,19.593C14.365,20.679 13.198,21.812 12,23C5.57,16.619 0,11.853 0,7.192C0,0.423 8.852,-1.154 12,4.248C15.125,-1.114 24,0.4 24,7.192C24,7.938 23.844,8.688 23.577,9.445C22.461,8.543 21.043,8 19.5,8C15.916,8 13,10.916 13,14.5C13,16.563 13.97,18.401 15.473,19.593Z" style="fill-opacity:0.6;fill-rule:nonzero;"/> <path d="M19.5,10C17.017,10 15,12.015 15,14.5C15,16.985 17.017,19 19.5,19C21.983,19 24,16.985 24,14.5C24,12.015 21.983,10 19.5,10ZM22,15L20,15L20,17L19,17L19,15L17,15L17,14L19,14L19,12L20,12L20,14L22,14L22,15Z" style="fill-rule:nonzero;"/></svg>'; } return $icon; },10,2); is making my site crash, do i need something more, like php tag or somethin? I am getting a red letters inside the php file, take a look, and please fix the syntax properly so i can use it as needed please: See: https://prnt.sc/zn5isl Thanks!February 16, 2021 at 3:38 pm #340625Anshuman SahuKeymasterPlease share ftps/cpanel creds to add the code.February 17, 2021 at 7:03 am #340700kenetorkParticipantThis reply has been marked as private.February 17, 2021 at 2:09 pm #340822Anshuman SahuKeymasterCode is added but there is no effect even I left error there .Are you sure the ftps are correct?February 17, 2021 at 8:19 pm #340891kenetorkParticipantYes I am sure, you removed other menus, could you pleae double check this? I still see the same icon, please help me with this icon editingFebruary 18, 2021 at 1:09 pm #341031Anshuman SahuKeymasterWell icons could also be changed the code is there in the file of which your provided ftps to us . Please check if the ftp credentials you shared are for this website: https://johanzambrano.com/February 18, 2021 at 5:48 pm #341082kenetorkParticipantYou have the ftp credentials are you not getting access to your ftp client?February 19, 2021 at 3:04 pm #341273Anshuman SahuKeymasterI said im adding the code even adding error to the files but whataever I do evem delete the files, the changes are not reflecting , maybe the ftp credentials are of some other website.February 21, 2021 at 9:15 pm #341642kenetorkParticipantYes this is the correct ftp, could you please check what is happenning?
-
AuthorPosts
Viewing 15 posts - 1 through 15 (of 15 total)
- The topic ‘How to Edit an icon and Translate V4’ is closed to new replies.