• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

canpress5

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 24 total)
1 2 →
  • Author
    Posts
  • July 2, 2018 at 12:16 pm in reply to: Genesis Portfolio Pro plugin – custom templates #221286
    canpress5
    Member

    Thank you for your insight Brad!

    June 30, 2018 at 10:42 pm in reply to: add custom fields to front-page.php #221267
    canpress5
    Member

    Please 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.

    June 30, 2018 at 10:34 pm in reply to: Genesis Portfolio Pro plugin – custom templates #221266
    canpress5
    Member

    Brad,
    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? #221260
    canpress5
    Member

    Thank 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? #221257
    canpress5
    Member

    I 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.

    June 30, 2018 at 11:23 am in reply to: Genesis Portfolio Pro plugin – custom templates #221252
    canpress5
    Member

    In 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?)

    June 30, 2018 at 11:13 am in reply to: add custom fields to front-page.php #221251
    canpress5
    Member

    Thank 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? #221250
    canpress5
    Member

    Thank 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?

    June 30, 2018 at 10:44 am in reply to: Genesis Portfolio Pro plugin – custom templates #221248
    canpress5
    Member

    Thank you Brad, will give that a try.

    June 29, 2018 at 3:04 pm in reply to: Genesis Portfolio Pro plugin – custom templates #221221
    canpress5
    Member

    I 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?

    June 28, 2018 at 9:49 pm in reply to: Genesis Portfolio Pro plugin – custom templates #221211
    canpress5
    Member

    I 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.

    June 7, 2018 at 2:14 pm in reply to: add custom fields to front-page.php #220640
    canpress5
    Member

    Thank you for the explanation Terry!

    In this scenario can you update multiple pages from your Client Settings page or just one page?

    June 6, 2018 at 2:59 pm in reply to: add custom fields to front-page.php #220617
    canpress5
    Member

    Hi 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?

    June 6, 2018 at 11:17 am in reply to: add custom fields to front-page.php #220612
    canpress5
    Member

    Depending 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!

    June 6, 2018 at 9:56 am in reply to: add custom fields to front-page.php #220609
    canpress5
    Member

    So you can create one admin page which contains custom fields for several different pages?
    Is this done using the Options Page, as seen here?

    Options Page

    Or another method?

    June 6, 2018 at 8:06 am in reply to: add custom fields to front-page.php #220606
    canpress5
    Member

    Terry,

    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!

    June 5, 2018 at 3:23 pm in reply to: add custom fields to front-page.php #220593
    canpress5
    Member

    Thank 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?

    May 29, 2018 at 11:36 am in reply to: Add custom CSS class to Genesis featured posts #220352
    canpress5
    Member

    Andrea, 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.

    May 28, 2018 at 3:51 pm in reply to: Add custom CSS class to Genesis featured posts #220311
    canpress5
    Member

    Further 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?

    May 7, 2018 at 5:17 pm in reply to: Studio Pro hamburger menu color #219621
    canpress5
    Member

    You 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;
    }
  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 24 total)
1 2 →

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble