• Resolved tsvetko.krastev

    (@tsvetkokrastevwf)


    Hey guys, could anyone help me out on how to hide the empty features on the single property page? I managed to fix the problem where you were not able to switch from Overview tab to Features tab. But when you open the features tab it shows all features. Is there a way to hide the unchecked? I tried with display: none, but the wrapping divs are staying and the features order gets messed up.. Checked the php file and found that there is “hide_empty => 0”, tried changing it to 1 or greater, but no difference, tried also with true/false, but again – no result. Could anyone help? Thanks! ??

Viewing 1 replies (of 1 total)
  • Thread Starter tsvetko.krastev

    (@tsvetkokrastevwf)

    Hey guys, you may close the topic. I found a solution for this.
    I’m posting it here in case someone else also need it.
    I’m not saying is a perfect solution for everyone, but this is what I needed t accomplish.
    Before you continue, I think it’s important to read this -> HOW TO OVERRIDE TEMPLATES VIA A THEME. It’s important to override the template files to be able to update the plugin without loosing your customizations.
    I will use the original paths to the files in the plugin folder to be easier to understand wich files you need to edit and where they are located in order to copy them.

    1. Copy the folder ‘single-property’ from ‘/wp-content/plugins/essential-real-estate/public/templates/’ to ‘/wp-content/themes/your-theme/ere-templates/’.
    2. Open the file ‘features.php’ located in ‘/wp-content/themes/your-theme/ere-templates/single-property’
    3. Navigate to line 284 and comment it. Also comment line 292.
    4. Edit line 286 by wrapping the ‘a’ element with the div from line 284 and add additional class. I used ‘checked’ for the checked features.
    5. Edit line 290 by wrapping the ‘a’ element with the div from line 284 and add additional class. I used ‘unchecked’ for the unchecked ’empty’ features.
    6. Hit save.
    7. In your CSS add this:

    div#ere-features div.unchecked {
        display: none;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Hide empty features’ is closed to new replies.