WP Residence Help WP Residence Help

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

How to keep Accordions closed by default on property page

3047 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 Required

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

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 39Elementor Shortcodes Built-In
  • 53FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 24Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language - Third Party Plugins
  • 6Other Third party Plugins
  • 21Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 37Property Pages & Layouts
  • 32Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 7Technical: Child Theme
  • 86Theme Options & Global Settings
  • 7Translations & Languages
  • 16WPBakery Shortcodes
  • 50WPEstate / WPResidence Translate Plugin
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 9WPResidence Elementor Studio

Join Us On

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