Forum Replies Created
-
AuthorPosts
-
canpress5Member
Thank you for your insight Brad!
canpress5MemberPlease send me a json export of the Client Settings page and i'll test it.
I haven't created that page - it was a suggestion made by Terry earlier in this thread, but I don't know how it works.
Thanks for the offer though, I will take you up on it if I make any progress with this.canpress5MemberBrad,
Can I ask your advice to make sure I'm heading in the right direction?My site features several Case Studies each of which is a substantial page in its own right and is not time sensitive (unlike a news item or blog post). New Case Studies will be added to the site on an ongoing basis. Because the content is 'timeless', in my mind each Case Study page should be a Page and not a Post.
Using different versions of the page_team.php template I can create several parent pages for these case studies to group them into different categories.
My only problem is that some of the case studies belong to more than one category and they can only have one Parent page each, so having the case studies as Pages does not allow me to use more than one category for each case study.
I have come to the conclusion that using a Case Study CPT with taxonomies for the categories is the best solution, would you agree?As far as using the page_team.php file, you would need to modify the code in †he template to do this as it uses WP_Query.
For the above scenario I would like to create a CPT archive template which produces identical output to page_team.php, ie using custom fields/ACF rather than the typical archive page output. Do you have any tutorials relating to this?
June 30, 2018 at 7:44 pm in reply to: Infinity Pro Team Page template – how to use for multiple teams? #221260canpress5MemberThank you Anita.
That css-tricks post shows how to create a custom template for a Page.
Can I use the same template for the CPT Archive page? (by naming it archive-teams.php)June 30, 2018 at 4:44 pm in reply to: Infinity Pro Team Page template – how to use for multiple teams? #221257canpress5MemberI have another question if you don't mind?
When you say to copy the team template to be used as the portfolio archive, can you literally just rename this template eg to archive-portfolio.php and it will produce the same output as the Team page?
OR do you need to make some changes to the template before it will work as an archive page?
When I tried using the Team page template as archive-portfolio.php, none of the custom field values appeared on the archive page.canpress5MemberIn another thread I asked whether it was possible to choose from multiple archive templates for one CPT.
Is this how you would achieve that? (ie using different taxonomy-{taxonomy}.php templates rather than different archive-{post_type}.php templates?)canpress5MemberThank you for the input Brad.
I'm familiar with coding a template to output ACF values for a page or post that uses that template.
What I am uncertain about is how to output ACF values in multiple locations, eg in Terry's Client Settings page example above, you could have custom_field_a which needs to be output on Page A, and custom_field_b which needs to be output on Page B, and custom_field_c which needs to be output on both Archives C and D.
What would the code look like in each of those templates to display ACF values which are updated in one central location, considering the Client Settings page can only be associated with one template?June 30, 2018 at 10:54 am in reply to: Infinity Pro Team Page template – how to use for multiple teams? #221250canpress5MemberThank you Anita,
you would need to copy the team template several times renaming them to Sales, Marketing, etc.
I thought only one archive template could be used with a CPT, eg archive-teams.php in this case?
Is it possible to use a different archive page for each CPT category (sales, marketing..)?
How is this done?canpress5MemberThank you Brad, will give that a try.
canpress5MemberI was a bit premature in marking this thread as resolved.
Further to the above post, although you can select a custom template for your portfolio item (as described above), that custom template is not actually used and Genesis Portfolio Pro defaults back to single-portfolio.php.
So, as far as I can tell you can only use one customized template within Genesis Portfolio Pro, namely a customized version of single-portfolio.php. Is this correct?canpress5MemberI managed to find the answer to this here.
To have different templates appear in the 'Page Attributes' section of the 'Edit Portfolio Item' screen you need to add 'portfolio' (or other custom post type) to the list of post types at the top of the template file, eg:
` <?php
/*
Template Name: Your Template
Template Post Type: post, page, portfolio
*/
// … your code here `
Then add the template to your child theme's root.canpress5MemberThank you for the explanation Terry!
In this scenario can you update multiple pages from your Client Settings page or just one page?
canpress5MemberHi Terry,
I really appreciate your help with this, thank you!
I understand how to set up a page with the required custom fields for my static home page, and I can set up the template for that static home page. So my original question from this post is answered.
What is not clear to me is how to set up your single Client Settings page to edit custom fields for multiple pages, eg the home page plus other pages. I've tried several Google searches but can't seem to find any reference to that?
canpress5MemberDepending on the fields - where/how they're being used - I sometimes just create a page and configure the fields to display there.
Do you mind pointing me in the right direction for how to build/configure such a page?
Thanks!
canpress5MemberSo you can create one admin page which contains custom fields for several different pages?
Is this done using the Options Page, as seen here?Or another method?
canpress5MemberTerry,
Do you mean an Admin page with custom fields just for the home page, or with custom fields for other areas of the site too?
Thanks!
canpress5MemberThank you for your help Victor!
Are there any downsides to using a page template/static front page instead of front-page.php for the home page?
canpress5MemberAndrea, thank you for your input.
What are you trying to do that can't use the existing custom class?
I want to use the existing fadeup-effect class from Infinity Pro which references the front-page.js file, so to use the existing featuredpost class I would also need to edit the .js file, which is not as straightforward as simply adding styles to the featuredpost class. I was hoping that adding the fadeup-effect class to the featured post would be an easier option.
canpress5MemberFurther to the above post, in the genesis core file genesis>lib>widgets>featured-post-widget.php I have found where the default classes are assigned around line 64:
$widget_ops = array( 'classname' => 'featured-content featuredpost', 'description' => __( 'Displays featured posts with thumbnails', 'genesis' ), );
I could add my new class there however it is not recommended to edit core files and I am unsure how to filter this in my child theme's functions.php?
canpress5MemberYou need to change in 2 places, see below where I have changed to #f00:
around line 1964
.menu-toggle span::before, .menu-toggle span::after { position: absolute; display: block; left: 0; width: 100%; height: 2px; height: 0.2rem; background-color: #f00; border-radius: 5px; content: ' ';
around line 1951
.menu-toggle span { display: block; position: relative; height: 2px; height: 0.2rem; background: #f00; transition: background 0s 0.4s; width: 25px; width: 2.5rem; margin: 0; border-radius: 5px; }
-
AuthorPosts