-
AuthorPosts
-
September 30, 2014 at 9:21 am #115598
Hi there
I’m trying to make a custom page template to show a specific category in a specific page (not using the “categories” page, because that option doesn’t allow me to use slider nor custom sidebars). So I created that template, but I can’t figure out in which directory I need to copy it. I’m working with a child theme of Integrity. I’ve tried to put it inside the framework/views/integrity folder of the parent theme, the same on the child theme, even in the main X folder with the other templates, but WP doesn’t recognize it (it doesn’t show on the template dropdown menu),Can you guide me on this?
thanks!
luciano
September 30, 2014 at 12:03 pm #115730two locations for theme files:
childtheme/template-custom.php
childtheme/views/integrity/template-custom.phplook at template-blank-1.php in X folder for the format for your childtheme/template-custom.php format:
<?php // ============================================================================= // TEMPLATE NAME: Blank - Container | Header, Footer // ----------------------------------------------------------------------------- // A blank page for creating unique layouts. // // Content is output based on which Stack has been selected in the Customizer. // To view and/or edit the markup of your Stack's index, first go to "views" // inside the "framework" subdirectory. Once inside, find your Stack's folder // and look for a file called "template-blank-1.php," where you'll be able to // find the appropriate output. // ============================================================================= ?> <?php x_get_view( x_get_stack(), 'template', 'blank-1' ); ?>
This tutorial might also be helpful – http://www.wpbeginner.com/wp-themes/how-to-create-category-templates-in-wordpress/
I hope this helps.
January 9, 2016 at 8:25 am #738603nevermind. 😉
January 9, 2016 at 2:40 pm #738879Okay 🙂 thanks!
March 16, 2016 at 2:14 pm #840573Hi, I am trying to create a custom template so that I can display specific category posts in the design of my choice.
I duplicated the files mentioned above:
childtheme/template-custom.php
childtheme/views/integrity/template-custom.phpand customized them. So far, so good.
However, I don’t have FTP access.
There is a place in Cornerstone where it says upload template, but so far I’m getting “Uh oh! Template not formatted correctly!” even if I use the default blank-1 templates.Am I doing this right?
March 16, 2016 at 6:37 pm #840937Hi There,
Sorry, but the template that the original poster is referring here, is the page layout template.
While the Cornerstone template is a page content template, hope that make sense. So, uploading a page layout template to Cornerstone would not work. You need to upload the template files with FTP or File manager on your Cpanel.
Hope this shed some lights. Cheers!
-
AuthorPosts