Tagged: x
-
AuthorPosts
-
January 10, 2017 at 10:32 pm #1324992
MerthodParticipantHello, I tried to find info on using a button shortcode for submitting a form. I couldn’t find anything.
So before I delve into dealing with code I’d like to ask you, how to do it?
Would hreffing like this would work?
“javascript:{}” onclick=”document.getElementById(‘the_form’).submit(); return false;”Is there a better way?
Or if there’s CSS to style the button as a shortcode such as adding a marketing circle, where is the doc? I couldn’t find it. I use Integrity.
I could only find how to mess with colors (https://community.theme.co/kb/implementing-additional-button-colors/).
I’m a little lost in this matter. Please help!
Thanks 🙂
January 11, 2017 at 2:38 am #1325172
LelyModeratorHello There,
Please check this:http://demo.theme.co/integrity-1/shortcodes/buttons/
Unfortunately, onclick property is not available. You may want to use HTML like this:
<a class="x-btn x-btn-pill x-btn-jumbo" href="javascript:{}" title="Example" onclick="document.getElementById('the_form').submit(); return false;">Sample Button </a>You can see the info for marketing circle on the link.
Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1324992 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
