• Skip to primary navigation
  • Skip to main content
  • Skip to footer

lawsie

The long-term storage silo of a human mind

  • Andrew Culture
  • Beat Motel Podcast
  • Observations
  • Consumer Info
  • Tech
  • Music Consumption
  • Musician Stuff
  • Graveyard
  • Buy me a pint
Home » blog » WP-Property sidebar below content – how to fix

WP-Property sidebar below content – how to fix

Published September 4, 2013 by lawsie 4 Comments

I’ve been working with the excellent WP-Property plugin for a client and have been really impressed with the free features that come with the plugin and consider the few premium addons that we needed to purchase really good value for the price that was paid.  BUT there was a problem – no matter what theme I used, and no matter how much I hacked at the CSS and plugin template pages (in my child-theme) I just could not make the standard WordPress side bar appear on the right hand side of the content where it was supposed to.

WordPress sidebar appearing below the content on the wp-property property listing pages.

This problem was only happening on the pages used to list the details of individual properties; I didn’t notice it happening anywhere else.  On all other pages on the property website I was working on showed the sidebar where it should be: beside the content.  One the property detail pages the sidebar was appearing below the content and the part of the layout where the sidebar should be was just a big white space.  I was stuck.  I called in the services of a CSS guru who tried many things and resorted to saying bad words out loud to the pages of code we were looking at.  Then we fixed it very easily; here’s how.

How to fix the sidebar being displayed below the content in the wp-property WordPress plugin:

  1. Copy the file property.php from wp-content/plugins/wp-property/templates and save it to the root folder of your child theme.  If you don’t have a child theme then make a copy of template.php and then hack at the file in-situ.  I would recommend creating a child theme first, here’s how…
  2. At the bottom of your new copy of property.php add two DIV close tags (highlighted below) just above the property type sidebar code.

So how did we find this fix?  We decided to run the (live) page we were having trouble with through the W3C code validator and found that it failed.  Adding the two DIV close tags fixed the validation errors and put the sidebar where it should be – on the side of the content.

I am a little disappointed that a great plugin like wp-property would appear to have a rudimentary code error like this, but hey, pobody’s nerfect.

Last Updated on February 18, 2023

Filed Under: Tech Tagged With: fixing, tech, technical article, troubleshooting, wordpress, WP-Property

Have you found this content useful?

Buy me a pint

This website isn't packed with obnoxious advertising but it does cost money to keep alive. Every little donation is a big help!

Reader Interactions

Comments

  1. Andrew Culture says

    September 5, 2013 at 3:48 pm

    Quick update, I also had to close a couple of divs in property-overview.php

    Reply
  2. Anonymous says

    November 12, 2013 at 5:35 am

    I have been having some of the same issues…..what templete are you using? And what was the edits you did to the overview file?

    Reply
  3. Andrew Culture says

    November 12, 2013 at 7:26 pm

    I was using a themeforest theme but these errors are in the plugin files. It was a few weeks ago but I think this plugin allows you to create child-files a bit like child themes.

    Reply
  4. Anonymous says

    February 28, 2014 at 4:55 am

    thanks for sharing. Will try this now.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Footer

Copyright © 2023 · Site wholly owned by Andrew Laws Associates Ltd | SEO by Yeseo

  • Home
  • About me
  • Andrew Culture
  • Buy me a pint
  • Privacy Policy
  • Contact me