Community Forums › Forums › Archived Forums › Design Tips and Tricks › Custom page template struggles
- This topic has 11 replies, 3 voices, and was last updated 10 years, 3 months ago by Brad Dalton.
-
AuthorPosts
-
December 31, 2013 at 4:35 pm #82394Scott PruettMember
Hi folks,
I'm building a site on Genesis w/ the Epik child theme, and need a custom page template to support this plugin:
http://codecanyon.net/item/team-showcase-wordpress-plugin/4936368
Basically, it creates individual pages for team members and then provides shortcodes for displaying a grid or table of said team members, which can be created based on categories and used anywhere. I'm mentioning this because it solves a problem and I want to use the plugin instead of creating pages for each individual team member.
The issue is that the instructions say to duplicate page.php and rename the copy to single-tshowcase.php. I've created a single-tshowcase.php in the child theme folder, and it works, but I can't figure out how to remove the post info, specifically the date/author.
The page template doesn't get selected for use by the plugin's pages; it just gets called based on the filename. Here's what's in the new page template file. What am I missing?
<?php remove_action( 'genesis_before_post_content', 'genesis_post_info' ); genesis();
Thanks!
http://launch.universaldesign.org/images/screencap.jpg
ScottDecember 31, 2013 at 5:47 pm #82404AnitaKeymasterEpik is a product of Appfinite.com. Wes, the developers, provides support for his themes here. You might want to post this there since his files are prepared a little differently.
Love coffee, chocolate and my Bella!
January 1, 2014 at 12:36 am #82439Scott PruettMemberThanks – I'll do that, though the process of creating new/custom page templates is a framework thing, right?
January 2, 2014 at 10:37 am #82688Scott PruettMemberPotentially relevant conversation w/ the plugin developer:
January 2, 2014 at 2:07 pm #82739Brad DaltonParticipantYou may find it a challenge to customize a plugin like that with Genesis.
Here's something i coded recently for Genesis http://wpsites.net/web-design/team-members-staff-authors-or-user-profile-page-template-for-genesis/
January 2, 2014 at 4:04 pm #82765Scott PruettMemberThanks Brad. All I need to do is remove the post info from the page template, nothing more. I'm not modifying the plugin at all.
Your template looks really good, though it's not quite what I'm looking for.
Cheers,
ScottJanuary 2, 2014 at 4:29 pm #82774Brad DaltonParticipantTry this
//* Remove the post info function remove_action( 'genesis_entry_header', 'genesis_post_info', 5 );
January 2, 2014 at 7:04 pm #82799Scott PruettMemberI wish I could say that worked, but it didn't. Thanks though!
January 3, 2014 at 5:36 am #82864Brad DaltonParticipantGot it from a SP theme template.
Works for HTML 5 themes only.
What theme are you using?
Otherwise, try one of these http://my.studiopress.com/snippets/
January 3, 2014 at 10:18 am #82926Scott PruettMemberThanks Brad. I'm using Epik.
Turns out it works by adding the snippet in functions.php, not the custom page template.
This affects the blog too, which isn't ideal, but at least it fixes the problem for now.
January 3, 2014 at 11:48 am #82953Scott PruettMemberUpdate: editing the page template file works now. I'm not sure what happened, but relaunching the FTP client (Yummy FTP, mac) and the text editor (TextWrangler, which loads/edits/saves through Yummy FTP) seemed to fix the problem. I was editing function.php through the dashboard and thecustom page template through FTP.
#frustrating
January 3, 2014 at 2:48 pm #82983Brad DaltonParticipantYou can do it conditionally http://wpsites.net/web-design/modify-post-info-genesis/
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.