WP Residence Help WP Residence Help

  • WpEstate
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / 24. Technical how to | Custom Code Required, 27. WpResidence 5.0 / Login Modal CSS Help File

Login Modal CSS Help File

519 views 0

Overview

This document explains the relationship between the SCSS styles in login_modal.scss and the PHP structure in login_register_modal.php. It will help you understand how to properly implement the login modal in your WordPress theme.

Main Wrapper

The main wrapper for the login modal is defined in the PHP file as:

<div id="modal_login_wrapper">

</div>

This corresponds to the SCSS selector:

#modal_login_wrapper {
// Styles for the main wrapper
}

Modal Background

The semi-transparent background is created with this PHP:

<div class="modal_login_back"></div>

And styled with this SCSS:

.modal_login_back {
// Styles for the modal background
}

Modal Container

The main container for the modal content is defined in PHP as:

<div class="modal_login_container ">

</div>

The corresponding SCSS:

.modal_login_container {
// Styles for the modal container

&.wpestare_recaptcha_extra_class {
// Additional styles when reCAPTCHA is present
}
}

Login/Register Image Section

The left side of the modal with the background image is created with:

<div class="login-register-modal-image" style="background-image: url('<?php echo esc_url($background_modal);?>')">
<div class="featured_gradient"></div>
<div class="login-register-modal-image_text"><?php echo esc_html(wpresidence_get_option('wp_estate_login_modal_message',''));?></div>
</div>

Styled with:

.login-register-modal-image {
// Styles for the image section
}

.login-register-modal-image_text {
// Styles for the text overlay
}

Form Wrapper

The right side of the modal containing the forms is structured as:

<div class="login-register-modal-form-wrapper">

</div>

With corresponding SCSS:

.login-register-modal-form-wrapper {
// Styles for the form wrapper
}

Close Button

The close button for the modal is a simple div:

<div id="login-modal_close"></div>

Styled with:

#login-modal_close {
// Styles for the close button
}

Form Sections

Each form section (login, register, forgot password) follows this structure:

<div class="login_form" id="login-div_topbar">
<div id="login-div-title-topbar"><?php esc_html_e('Sign into your account','wpresidence');?></div>

</div>

The SCSS for the titles:

#forgot-div-title-topbar,
#register-div-title-topbar,
#login-div-title-topbar {
// Styles for form section titles
}

And for the form containers:

#forgot-pass-div,
#register-div-topbar,
#login-div_topbar {
// Styles for form containers
}

Submit Buttons

Submit buttons in the forms are styled uniformly:

#wp-submit-register_topbar,
#wp-login-but-topbar,
#wp-forgot-but-topbar {
// Styles for submit buttons
}

Terms and Conditions Checkbox

The terms and conditions checkbox in the register form:

<input type="checkbox" name="terms" id="user_terms_register_topbar" />
<label id="user_terms_register_topbar_label" for="user_terms_register_topbar">
<?php esc_html_e('I agree with ','wpresidence');?>
<a href="<?php print wpestate_get_template_link('terms_conditions.php');?>" target="_blank" id="user_terms_register_topbar_link">
<?php esc_html_e('terms & conditions','wpresidence');?>
</a>
</label>

Styled with:

#user_terms_register_topbar {
// Styles for the checkbox
}

#user_terms_register_topbar_label {
// Styles for the label
}

Modal Control Links

The links at the bottom of the modal for switching between forms:

<div class="login_modal_control">
<a href="#" id="widget_register_topbar"><?php esc_html_e('Register here!','wpresidence');?></a>
<a href="#" id="forgot_pass_topbar"><?php esc_html_e('Forgot password?','wpresidence');?></a>
<a href="#" id="widget_login_topbar"><?php esc_html_e('Back to login','wpresidence');?></a>
<a href="#" id="return_login_topbar"><?php esc_html_e('Back to login','wpresidence');?></a>
<input type="hidden" name="loginpop" id="loginpop" value="0">
</div>

Styled with:

.login_modal_control {
// Styles for the control links container
}

Conclusion

By matching the PHP structure with the SCSS selectors, you can ensure that your login modal is styled correctly. Remember to enqueue your compiled CSS file in your WordPress theme for the styles to take effect.

24. Technical how to | Custom Code Required27. WpResidence 5.0

Related Articles

  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization

WP Residence Documentation

  • 01. Getting Started
    • How to Get Support
    • Get your buyer license code.
    • Use SSL / https
    • Server / Theme Requirements
  • 02. Installation & Setup
  • 03. Installation FAQ
  • 06. Search & Filtering
    • Advanced Search Display Settings
    • Advanced Search Form
    • Geolocation Search for Half Map
    • Save Search Theme Options
    • Advanced Search Colors
  • 09. Agent, Agency & Developers
  • 08. Property Pages & Layouts
  • 07. Property Lists, Categories & Archive
  • 13. WPResidence Elementor Studio
  • 10. Blog Posts & Blog List
  • 11. Shortcodes
    • Contact Form
    • Featured Agency/Developer
    • Membership Packages
    • Testimonials
    • Google Map with Property Marker
    • Listings per Agent, Agency or Developer
    • Display Categories
    • Agent List
    • Recent Items Slider
    • Recent items
    • List Properties or Articles by ID
    • Featured Agent
    • Featured Article
    • Featured Property
    • Login & Register Form
    • Icon Content Box Shortcode
  • 12. Widgets
  • 04. Theme Options & Global Settings
    • General Settings
    • User Types Settings
    • Appearance
    • Logos & Favicon
    • Header
    • Footer Style and Colors
    • Price & Currency
    • Property Custom Fields
    • Features & Amenities
    • Listing Labels
    • Theme Slider
    • Permalinks
    • Splash Page
    • Social & Contact
    • Map Settings
    • Pin Management
    • How read from file works
    • General Design Settings
    • Custom Colors Settings
    • Header Design & Colors
    • Mobile Menu Colors
    • User Dashboard Colors
    • Print PDF Design
    • Property, Agent, Blog Lists Design Settings
    • Sidebar Widget Design
    • Font management
    • How to add custom CSS
    • Custom Property Card Unit – Beta version
    • Email Management
    • Import & Export theme options
    • reCaptcha settings
    • YELP API Integration
    • iHomefinder Optima Express IDX
    • MEMBERSHIP & PAYMENT Settings
    • Property Submission Page
    • PayPal Setup
    • Stripe Setup
    • Wire Transfer Payment Method
  • 20. Translations & Languages
  • 26. FAQ
  • 10. Pages
  • 11. Header
  • 12. Footer
  • 05. Maps & Location Settings
  • 18. Payments & Monetization
  • Plugins
    • 19. Included Plugins
    • 22. Third Party Plugins – IDX Compatibility
    • 21. Third-Party Plugins – Multi-Language
    • 23. Third party Plugins – Other
  • Technical
    • 24. Technical how to | Custom Code Required
    • 25. Technical: Child Theme

Join Us On

Powered by WP Estate - All Rights Reserved
  • WpEstate
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API