WP Residence Help WP Residence Help

  • WpEstate
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / 26. Technical how to | Custom Code Required, 27. WPResidence 5.0 / Customizing Header Colors and Styles in WPResidence

Customizing Header Colors and Styles in WPResidence

620 views 0

WPResidence offers extensive options for customizing the colors and styles of your website’s header. This guide will walk you through the process of modifying various header elements to create a unique and cohesive look for your real estate website.

Accessing Header Color Options

To begin customizing your header colors:

  1. Log into your WordPress dashboard
  2. Navigate to WPResidence Options (under the Real Estate menu)
  3. Click on the ‘Header Design & Colors’ tab

Customizing Main Header Colors

Start with the main header background and font colors:


array(
'id' => 'wp_estate_header_color',
'type' => 'color',
'title' => __('Header Background Color', 'wpresidence-core'),
'subtitle' => __('Pick a background color for the header.', 'wpresidence-core'),
'transparent' => false,
),
array(
'id' => 'wp_estate_menu_font_color',
'type' => 'color',
'title' => __('Top Menu Font Color', 'wpresidence-core'),
'subtitle' => __('Pick a font color for the top menu.', 'wpresidence-core'),
'transparent' => false,
),

To apply these colors in your child theme, add to style.css:


.header_wrapper {
background-color: #your_chosen_color;
}
.navbar-nav > li > a {
color: #your_chosen_font_color;
}

Styling Menu Hover and Active States

Customize the appearance of menu items when hovered or active:


array(
'id' => 'wp_estate_top_menu_hover_font_color',
'type' => 'color',
'title' => __('Top Menu Hover Font Color', 'wpresidence-core'),
'subtitle' => __('Pick a hover font color for the top menu items.', 'wpresidence-core'),
'transparent' => false,
),
array(
'id' => 'wp_estate_active_menu_font_color',
'type' => 'color',
'title' => __('Active Menu Font Color', 'wpresidence-core'),
'subtitle' => __('Pick a font color for the active menu item.', 'wpresidence-core'),
'transparent' => false,
),

Implement these styles in your child theme:


.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
color: #your_chosen_hover_color;
}
.navbar-nav > .current-menu-item > a {
color: #your_chosen_active_color;
}

Customizing Dropdown Menu Colors

Style the dropdown menus to match your design:


array(
'id' => 'wp_estate_menu_item_back_color',
'type' => 'color',
'title' => __('Dropdown Menu Background Color', 'wpresidence-core'),
'subtitle' => __('Pick a background color for dropdown menus.', 'wpresidence-core'),
'transparent' => false,
),
array(
'id' => 'wp_estate_menu_items_color',
'type' => 'color',
'title' => __('Dropdown Menu Item Font Color', 'wpresidence-core'),
'subtitle' => __('Pick a font color for dropdown menu items.', 'wpresidence-core'),
'transparent' => false,
),

Apply these styles in your child theme:


.navbar-nav .dropdown-menu {
background-color: #your_chosen_background_color;
}
.navbar-nav .dropdown-menu > li > a {
color: #your_chosen_font_color;
}

Styling the Sticky Header

If you’re using a sticky header, customize its appearance:


array(
'id' => 'wp_estate_sticky_header_color',
'type' => 'color',
'title' => __('Sticky Header Background Color', 'wpresidence-core'),
'subtitle' => __('Pick a background color for the sticky header.', 'wpresidence-core'),
'transparent' => false,
),
array(
'id' => 'wp_estate_sticky_menu_font_color',
'type' => 'color',
'title' => __('Sticky Header Font Color', 'wpresidence-core'),
'subtitle' => __('Pick a font color for the sticky header menu items.', 'wpresidence-core'),
'transparent' => false,
),

Implement these styles in your child theme:


.sticky_header {
background-color: #your_chosen_sticky_background;
}
.sticky_header .navbar-nav > li > a {
color: #your_chosen_sticky_font_color;
}

Advanced Styling Techniques

For more advanced customization, consider these techniques:

1. Gradient Background

Create a gradient background for your header:


.header_wrapper {
background: linear-gradient(to right, #start_color, #end_color);
}

2. Transparent Header

Implement a semi-transparent header:


.header_wrapper {
background-color: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(5px);
}

3. Custom Border Styles

Add custom borders to your header elements:


.navbar-nav > li > a {
border-bottom: 2px solid transparent;
transition: border-color 0.3s ease;
}
.navbar-nav > li > a:hover {
border-color: #your_chosen_color;
}

4. Responsive Color Changes

Adjust colors for different screen sizes:


@media only screen and (max-width: 768px) {
.header_wrapper {
background-color: #mobile_background_color;
}
.navbar-nav > li > a {
color: #mobile_font_color;
}
}

By leveraging these color and style customization options, you can create a unique and branded header that perfectly matches your real estate website’s aesthetic. Remember to always implement these changes in a child theme to ensure they persist through theme updates.

26. Technical how to | Custom Code Required27. WPResidence 5.0

Related Articles

  • Webhook Integration for Contact Forms
  • 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

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
  • 14. 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
  • 24. FAQ
  • 10. Pages
  • 11. Header
  • 12. Footer
  • 05. Maps & Location Settings
  • 18. Payments & Monetization
  • Plugins
    • 22. Third Party Plugins – IDX Compatibility
    • 21. Third-Party Plugins – Multi-Language
    • 23. Third party Plugins – Other
  • Technical
    • 26. 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