Display .png image on the submit button
-
How do I add an image on submit button wpforms in WordPress?
I was provided this code by a support staff, which didn’t work:
.wpforms-submit-container .wpforms-submit {
background-image: url(‘https://lhamosplane.world/wp-content/uploads/2023/07/th-1787430678.B.png’);
background-size: cover;
padding-left: 40px;
}
……………………………………………I found this code from your tutorial that displays Font Awesome icons and it almost does what I want, but I can’t add a URL to my image of choice.
.wpforms-form button[type=submit]:hover {
background-color: #ac2428 !important;
}
.wpforms-form button[type=submit]:before {
content: ‘\f1d8’; /* Unicode for icon, be sure to keep the quotes and forward slash */
margin-right: 10px !important; /* Distance between icon and button text */
}
I just want a .png image to be visible next to the “Submit” text within the submit button to the left. Please help.The page I need help with: [log in to see the link]
- The topic ‘Display .png image on the submit button’ is closed to new replies.