Hi there, I would be grateful for your help - I can’t manage with my knowledge.
I have a Wordpress system with divi, and two more plugins. They all have buttons. They all behave differently. The trouble is though: I can’t change the HTML code the plugin uses - it would mess up a great many things, as I am not in PHP plugin programming.
I can use CSS to make them look and behave differently. Unfortunately, divi uses “div” and “a”. The forms plugin uses “button”, and the newsletter plugin uses “input type=submit”. How can I make them all behave like in divi?
The HTML for divi is:
<div class="et_pb_button_module_wrapper et_pb_button_0_wrapper et_pb_module ">
<a class="et_pb_button et_pb_button_0 et_pb_bg_layout_light" href="https://clausfaber.net/beratung/">Interessiert mich ...</a>
</div>
And the css for divi is:
.et_pb_button {
color: #ef4128;
background-color: rgba(255, 255, 255, 0.35);
border-width: 1px !important;
border-radius: 0px;
transition: all 300ms ease 0ms;
font-size: 20px;
font-weight: 500;
padding: .3em 1em;
line-height: 1.7em !important;
background-size: cover;
background-position: 50%;
background-repeat: no-repeat;
border: 2px solid;
transition-property: all !important;
}
.et_pb_button>a {
display: inline-block;
vertical-align: middle;
font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif;
position: relative;
}
.et_pb_button:after {
font-size: 32px;
color: #ef4128;
line-height: 1em;
content: "\35";
opacity: 0;
position: absolute;
margin-left: -1em;
text-transform: none;
font-feature-settings: "kern" off;
font-variant: none;
font-style: normal;
font-weight: 400;
text-shadow: none;
font-family: ETmodules !important;
speak: none;
-webkit-font-smoothing: antialiased;
direction: ltr;
}
The HTML for the contact form is:
<button type="submit" name="wpforms[submit]" id="wpforms-submit-2906" class="wpforms-submit" data-alt-text="Senden ..." data-submit-text="Thema vorschlagen" aria-live="assertive" value="wpforms-submit">Thema vorschlagen</button>
Finally, the HTML for the newsletter form is:
<input class="tnp-submit" type="submit" value="abonniere ich..." style="">
The tricky part is the :after part (an arrow pointing to the right), displayed on hover. I can’t get that to work. Is there any way to do this?
You can see it live on https://clausfaber.net/werkstatt.
Many thanks in advance, Claus