Hi again,
I believe this can be done with CSS only, give the class custom-file-upload
to the span tag that is wrapping your input (see screenshot)
Then add the following code in your child theme’s style.css file:
span.custom-file-upload input[type="file"] {
display: none;
}
span.custom-file-upload:before {
content: '\f093';
font-family: "FontAwesome";
font-weight: 900;
}
span.custom-file-upload:after {
content: 'Choose File';
margin-left: 5px
}
span.custom-file-upload {
border: 1px solid #ccc;
display: inline-block;
padding: 10px 40px;
cursor: pointer;
color: #000;
background: #f3f3f3;
cusrsor: pointer;
position: relative;
top: 10px;
margin: 10px 0;
}
Make sure to remove the old CSS if you’ve added any. As you see this requires custom coding and further changes from here would getting into custom development which is outside the scope of support we can offer. You may wish to consult a developer to assist you with this.
Thanks for understanding. Take care!