• Hi,
    I installed option forms, and I want to show it in my primary sidebar through an action hook. This is the code I used in the hook: <div class=”option-form”><p> [optinform]?</p></div>.

    It works fine and shows the form, however, it’s broken. The button to signup and other fields are not aligned properly. This problem doesn’t happen when I write the shortcode in a text widget, and show it in the sidebar.

    Website: mangoabroad.com

    For reference, I am showing the similar form twice. The first one on top is through text widget and the one at the bottom is through action hook. Please help.

Viewing 1 replies (of 1 total)
  • Plugin Author FancyThemes

    (@fancythemes)

    Hi,

    Add this CSS code in WP admin > Appearance > Customize > Additional CSS:

    .option-form #optinforms-form1-name-field-container, 
    .option-form #optinforms-form1-email-field-container, 
    .option-form #optinforms-form1-button-container {
        display: block;
        float: none;
        width: 100%;
        margin: 0 0 10px;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Option forms breaks up when used through action hook’ is closed to new replies.