How to Edit an icon and Translate V4

Home Forums Legacy Support Support queries Update Issues How to Edit an icon and Translate V4

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #338554
    kenetork
    Participant
    Hi, 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!
    #338800
    Anshuman Sahu
    Keymaster
    To 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-pwa
    #339687
    kenetork
    Participant
    Hi, 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!
    #339778
    Anshuman Sahu
    Keymaster
    Hi you have to add the code in wplms-customizer.php file in wplms customizer plugin via ftp .
    #340068
    kenetork
    Participant
    But 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!
    #340335
    Anshuman Sahu
    Keymaster
    You 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/
    #340376
    kenetork
    Participant
    This 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!
    #340625
    Anshuman Sahu
    Keymaster
    Please share ftps/cpanel creds to add the code.
    #340700
    kenetork
    Participant
    This reply has been marked as private.
    #340822
    Anshuman Sahu
    Keymaster
    Code is added but there is no effect even I left error there .Are you sure the ftps are correct?
    #340891
    kenetork
    Participant
    Yes 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 editing
    #341031
    Anshuman Sahu
    Keymaster
    Well 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/
    #341082
    kenetork
    Participant
    You have the ftp credentials are you not getting access to your ftp client?
    #341273
    Anshuman Sahu
    Keymaster
    I 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.
    #341642
    kenetork
    Participant
    Yes this is the correct ftp, could you please check what is happenning?
Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘How to Edit an icon and Translate V4’ is closed to new replies.