WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code / How to keep Accordions closed by default on property page

How to keep Accordions closed by default on property page

3135 views 0

1. Default page template

Go to templates/property_page_acc_content.php  file

Add class “collapsed” to the link below

<a data-toggle=”collapse” data-parent=”#accordion_prop_addr” href=”#collapseTwo” >

becomes

<a data-toggle=”collapse” data-parent=”#accordion_prop_details” href=”#collapseOne” aria-expanded=”false” class=”collapsed”>

_______________

On the h4 element add the class “carusel_closed”

<h4 class=”panel-title”>

becomes

<h4 class=”panel-title carusel_closed”>

_____________________________

Remove class “in” on the div

<div id=”collapseTwo” class=”panel-collapse collapse in”>

becomes

<div id=”collapseTwo” class=”panel-collapse collapse”>

2. Custom page template

Go to libs\listing_functions.php file – function estate_floor_plan and for $show variable change from

$show= ‘ style=”display:block”; ‘;

to

$show= ‘ style=”display:none!important”; ‘;

Technical how to | Custom Code

Related Articles

  • How to Add Custom Fields to the Login, Register and Forgot Password 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
MLSImportWordPress IDX Plugin for MLS ListingsImport MLS listings into your WordPress website, customize your property pages, and keep your inventory updated.Start free 30-day trial →

Help Categories

  • 111 Installation & Changelog
  • 19Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 14Footer
  • 38Header
  • 2IDX & MLSImport
  • 23Maps & Location Settings
  • 50Multilingual Websites – WPEstate Translate (Included)
  • 21Pages & Page Templates
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 38Property Single Page
  • 32Search & Filtering
  • 170Technical how to | Custom Code
  • 9Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Theme Translation & Localization
  • 28Third Party Plugins Compatible
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 9WPResidence Elementor Studio
  • 39WPResidence Elementor Widgets
  • 79WPResidence FAQ

Join Us On

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