• Resolved otherorange

    (@otherorange)


    I’m wondering if it’s possible to hide the disclosure text that appears under the sign-up form. My client’s disclosure text is quite long and it wrecks the design of their website footer. There is nearly 350 pixels of empty space under the Submit button that shouldn’t be there – empty because the disclosure text is the same colour as the background. I can fix the text colour using CSS but don’t want the disclosure to appear at all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    For compliance reasons, we were asked to not provide a UI option to disable the disclosure text, however that’s not to say it couldn’t be visually hidden via CSS and the ‘display’ property.

    I commented out line 1183 of wp-content\plugins\constant-contact-forms\class-display.php

    return sprintf( __( 'By submitting this form, you are granting: %s, permission to email you. You may unsubscribe via the link found at the bottom of every email. (See our Email Privacy Policy (http://constantcontact.com/legal/privacy-statement) for details.) Emails are serviced by Constant Contact.', 'constant-contact-forms' ), $this->plugin->api->get_disclosure_info() );

    You can also remove the <hr><sub> form line 1172 of the same file to tighten up the bottom of the form.

    return apply_filters( 'constant_contact_disclose', '<hr><sub>' . $this->get_inner_disclose_text() . '</sub>' );

    You may have to re-comment it if there are any updates of course.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Just realized you had the thread at https://wordpress.org/support/topic/contacts-added-but-no-opt-in-email-sent/#post-8510772 so I ended up posting essentially the same answer as here.

    Yes, you will need to re-edit each time we push out an update, but you’re aware of that limitation and need.

    Hey Guys….I have a stupid question.

    Is this correct for commenting this out since it’s PHP:

    public function get_inner_disclose_text() <?{
    return sprintf( __( ‘By submitting this form, you are granting: %s, permission to email you. You may unsubscribe via the link found at the bottom of every email. (See our Email Privacy Policy (http://constantcontact.com/legal/privacy-statement) for details.) Emails are serviced by Constant Contact.’, ‘constant-contact-forms’ ), $this->plugin->api->get_disclosure_info() );
    }?>

    Thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’d recommend against that, since you’d have to re-remove it on your own any time we update. Personally I’d look about 10 lines up at the filter, and consider the __return_empty_string() function.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is it possible to hide the disclosure text’ is closed to new replies.