Shape 5

Wordpress Club Themes => Zoka Transports - Club => : cspub February 24, 2016, 03:14:05 PM



: how to add page template
: cspub February 24, 2016, 03:14:05 PM
I had another topic posted about adding a property listing plugin. I couldn't get that one to work, so i'm trying another called wp-property. seems no matter what i try they don't work with shape 5 templates.

i purchased their template to try and it all works but don't like the other page layouts. so i'm trying to add the property listing pages into the theme so they can work. it does let you pick a specific template page for property listings. i've copied their pages into the zoka theme root but it doesn't show up as a template. not sure what i need to do. i know your themes don't use single.php and they use that when displaying properties.

i guess question is if there is an easy way to get these different plugins to work or is shape 5 templates so different these types of plugins don't work.

my site
http://rdsrealestate.com

a demo of how it should look is
http://madison.ci.usabilitydynamics.com

individual page listing
http://madison.ci.usabilitydynamics.com/listings/fitzgerald-ave/


: Re: how to add page template
: Tristan Rineer February 25, 2016, 01:24:21 PM
You can duplicate the index.php file as a "page template".  If the content call needs to be changed, what you're looking for is the following code, or something very similar:

:
			<?php if ($s5_show_component == "yes") { ?>
<main>
<?php s5_component_call(); ?>
<div style="clear:both;height:0px"></div>
</main>
<?php ?>



: Re: how to add page template
: cspub February 25, 2016, 02:29:50 PM
do i just add to root of zoka theme? and call it whatever.php? thanks


: Re: how to add page template
: Tristan Rineer February 25, 2016, 09:45:40 PM
That should be all you need to do, as well as adding whatever code is needed.  I believe page templates require a PHP comment block at the top that defines it as a page template before WP can detect it, but I haven't ever had to create one, so I can't be certain.