Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
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