Archived topic
Plugin Layout Issues
4 replies · Started by Andy on November 22, 2016
Hi Tom,
Sorry to bother you again. I'm trying to get the Easy Property Listings plugin working/displaying correctly.
On the archive page which appears after doing a property search such as here: http://tinyurl.com/hnhrhca
I cant get the sidebar to position itself to the right as required. I managed to add a wrapping div around the left content with the classes "content-area grid-parent mobile-grid-100 grid-60 tablet-grid-60" but can't seem to get the sidebar to behave like it does on a standard page such as here: http://tinyurl.com/zg7h66l
Any help appreciated.
It looks like you need to make custom template files in your child theme: http://codex.easypropertylistings.com.au/article/95-my-theme-is-requires-unique-configuration-to-the-single-and-archive-templates-how-will-this-work
So you would copy the files from the GP parent, then make the necessary adjustments to the file name and content functions: http://codex.easypropertylistings.com.au/article/49-theme-setup
Thank you Tom I have it working as intended now. I had looked at the docs but some how missed those pages.
What made things more confusing is in the plugin settings there was a "Theme Compatability" option. When Enabled the archive page looked fine, but the single listing page wasnt quite right. When Disabled as it is now the single listing page looked fine but the archive page didnt work right with the sidebar in the wrong place. Also, I had followed this guide on creating custom templates: http://codex.easypropertylistings.com.au/article/121-how-to-create-your-own-custom-theme-templates-or-modify-existing-ones-using-the-theme-template-loader
It seems there is two ways of overriding templates and the guide you posted works best for GP.
Awesome, glad you got it all working :)
Hi Tom,
I am having similar issue with the eeasypropertylisting plugin. I tried the foll as per the instructions:
1. copy and rename single.php to single-listing.php to my child theme folder
2.Modify the line " <?php get_template_part( 'content', 'single' ); ?> "
to " <?php do_action( 'epl_property_single' ); ?> "
3. Copy and rename archive.php to archive-listing.php to my child theme folder.
4. Modify the line " <?php get_template_part( 'no-results', 'archive' ); ?> "
to " <?php do_action( 'epl_property_blog' ); ?> "
Does not work...help!
Thanks