Skip to content

Commit

Permalink
Switch class to .visuallyhidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Darby committed Feb 28, 2020
1 parent 44b3df1 commit e19e508
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion wp-content/themes/citylimits/css/child-style.css

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions wp-content/themes/citylimits/less/newsletters.less
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,6 @@
margin-bottom: 10px;
padding: 4px 16px;
}
.uhohhoneypot {
opacity: 0;
position: absolute;
top: 0;
left: 0;
height: 0;
width: 0;
z-index: -1;
}
}

@media (min-width: 769px) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@
<!--<input type="text" name="newsletter_lname" placeholder="Last Name" required>-->
<input type="email" name="newsletter_email" placeholder="Email" required>
<!-- H o n e y p o t -->
<label class="uhohhoneypot" for="name"></label>
<input class="uhohhoneypot" autocomplete="off" type="text" id="name" name="name" placeholder="Your name here">
<label class="visuallyhidden" for="name"></label>
<input class="visuallyhidden" autocomplete="off" type="text" id="name" name="name" placeholder="Your name here">
<!-- End H o n e y p o t -->
<input type="submit" class="subscribe_button" value="Sign Up">
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<label for="newsletter_fname"><?php esc_html_e( 'Email address', 'citylimits' ); ?></label>
<input type="email" name="newsletter_email" placeholder="<?php esc_attr_e( 'Email address', 'citylimits' ); ?>" required>
<!-- H o n e y p o t -->
<label class="uhohhoneypot" for="name"></label>
<input class="uhohhoneypot" autocomplete="off" type="text" id="name" name="name" placeholder="Your name here">
<label class="visuallyhidden" for="name"></label>
<input class="visuallyhidden" autocomplete="off" type="text" id="name" name="name" placeholder="Your name here">
<!-- End H o n e y p o t -->
<input type="submit" class="btn btn-primary" value="Sign Up">
</div>
Expand Down

0 comments on commit e19e508

Please sign in to comment.