Forum Support

Shape 5
March 28, 2024, 12:47:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to add page template  (Read 995 times)
cspub
Jr. Member
**
Offline Offline

Posts: 236



« on: 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/
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: 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:

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

Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
cspub
Jr. Member
**
Offline Offline

Posts: 236



« Reply #2 on: February 25, 2016, 02:29:50 PM »

do i just add to root of zoka theme? and call it whatever.php? thanks
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #3 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.