Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1324992
    Merthod
    Participant

    Hello, 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 🙂

    #1325172
    Lely
    Moderator

    Hello 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.

  • <script> jQuery(function($){ $("#no-reply-1324992 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>