-
AuthorPosts
-
January 14, 2021 at 6:10 am #1272326
I need a button that works with events manager. I am using conditional placeholders to call the url. However, I cannot place them in the enfold button shortcode.
You can see the buttons here
Here is the code on the site, it produces a wonky button that doesn’t function.
<div class=”registration-button”>{has_att_bookingurl}<span style=”color:white;”>Click to Register</span>{/has_att_bookingurl}</div>(This was to see if there was an error calling the url)
<div class=”registration-button”><span style=”color:white;”>Click to Register</span></div>The url doesn’t function correctly. It leads to the wrong page.
Here is the css.
/* Buttons for registering on events pages*/
.registration-button {
border:#f70a3d;
border-width: .3px;
border-radius: .225em;
border:solid;
background-color:#bf0a31;
width:200px;
padding: 0.385em 0.923em 0.538em;
line-height: normal;
margin:8px;
text-align: center;
font-size:16px;
text-shadow: 0 0.075em 0.075em rgba(0,0,0,0.5);
margin: 0 auto;
vertical-align: left;
}.registration-button:hover {
border:#ebc4b5;
border-width: .3px;
border-radius: .225em;
background-color:#D3BCB3;
width:200px;
padding: 0.385em 0.923em 0.538em;
line-height: normal;
margin:8px;
text-align: center;
font-size:16px;
text-shadow: 0 0.075em 0.075em rgba(0,0,0,0.5);
margin: 0 auto;
vertical-align: left;
}.registration-button a {
color:white;
}Can you tell me how to get the button working?
January 16, 2021 at 4:42 am #1272851Hey KMC,
I’m seeing 3 buttons on the page you linked to, which one is not working as it should? Please post admin WordPress login details in private so that we can have a look at the backend as well.
Best regards,
RikardJanuary 17, 2021 at 9:41 pm #1273161Thanks Rikard,
After further testing and a stroke of good luck, I noticed a small syntax error got slipped into my code. Everything is now sorted.
Thanks for being here.
January 18, 2021 at 5:41 am #1273222Hi KMC DC,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Creating a custom button’ is closed to new replies.