Tagged: custom page template
- May 27, 2014 at 10:33 am #3043
Hi, I need to make a custom template page for my IDX details. I don’t see the default page with sidebar anywhere. I was simply going to copy it and have it include a custom side bar and rename it & save. I already know how to add custom sidebars to pages/posts though gen sidebar but I need a template to choose from the page attributes for my idx.
Can anyone point me in the right direction?
- June 3, 2014 at 12:00 pm #3073
- June 5, 2014 at 12:03 pm #3078Ginger CoolidgeParticipant
Hi there, curious as to why you might need a new template? You cannot use a regular page and alter your sidebars?
- June 5, 2014 at 12:23 pm #3079
I don’t generate or create the IDX pages. The IDX plugin does.
I only get to choose a custom page that is saved as a template. If you see the image below it gives me the basic options, default, blog & archive but I have created “results”. I use that for the IDX results page as full width is optimal for viewing.
I would like a clone of the default page for my IDX details so I can rename it, add a specific sidebar that doesn’t also show throughout the site on all blog posts, default pages etc..
Know what I mean?
- June 5, 2014 at 4:19 pm #3080Ginger CoolidgeParticipant
Ahh, OK, I gotcha. I was just curious. The IDX configs I have done wanted pages created but not templates.
So the answer is the default Genesis page template is nothing more than one line of code 🙂 If you make a new text file in your favorite text editor and enter this code:
<?php /** * Template Name: Results * Description: Used as a page template for IDX */ genesis();
Upload this file to your theme folder after saving it. You can use any name you like, however, do not use the page- prefix as WordPress sees that as a system-y type template.
Carrie has a great tutorial on her blog for this, see this link below:
- You must be logged in to reply to this topic.