Feb 20, 2021 9:37 pm
I changed the attachment icon to a camera and next to it I'd like to have the text "Add Photo". I have this piece of js code. Can you tell me where/how I can include this code to make this work:
// Add text next to icon attachment
$('i.fas.fa-camera').html( '<span style=\'font-size: 14px;padding-left: 5px;font-family: Arial Hebrew, Arial, sans-serif;\'>ADD PHOTO</span>' );
Please see attachment to see what I mean:
5 Replies
Feb 22, 2021 8:30 am
You can use the Js code below:
jQuery(document).ready(function(){
jQuery("#wpdcom .wpd-form .wpdiscuz-textarea-wrap.wpd-txt .wmu-upload-wrap i").append( "<span> ADD Photo</span>" );
});
Use the methods provided in this article: https://www.collectiveray.com/add-javascript-to-wordpress