• Resolved COLR

    (@colr)


    Hi there!

    I’m really excited to use Optin Forms, but I’m having some setup issues that I believe are caused by the way actions are called in my one-page theme. Rather than using individual pages/posts, I’m hijacking the portfolio section of the theme to do book reviews.

    What I’m trying to accomplish:
    Get the form to appear within the “portfolio” section when you click on the portfolio item and it loads.

    What I’ve tried:

    • If I turn on the form (in Form Placement) and place the shortcode within the “portfolio” item, the form properly appears within the portfolio item. Unfortunately, because the theme is technically only one page, it then also appears on the main page (outside the portfolio item).
    • If I exclude the main page, the form is also prevented from appearing on the portfolio item.

    Link: https://www.cityoflightreading.com

    Thanks in advance for your help!

    https://www.ads-software.com/plugins/optin-forms/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi COLR,

    I understand what you’re saying, thanks for taking the time to explain it properly.

    The only way to prevent this from happening is by using some custom CSS to hide one of the forms, because your theme is built the way it is.

    To fix this, go to Optin Forms, edit your form, and add the following code in the Custom CSS field in the Form Options section:

    .port-content #optinforms-form1-container{display:none!important;}

    Click Save and that should be it ??

    Thread Starter COLR

    (@colr)

    Thanks, Boris! That custom CSS did hide the Optin Form within the “portfolio” item, but left it intact on the main page of the theme. I’m actually trying to do the opposite. ??

    Perhaps I should use some custom CSS on the main theme to hide the Optin Form? (Unfortunately, my CSS skills aren’t enough to know how!)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form Appearing Twice in One-Page Theme’ is closed to new replies.