• 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

Custom Blog Style Category Page – Lifestyle Pro

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

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Custom Blog Style Category Page – Lifestyle Pro

This topic is: resolved

Tagged: custom blog page, custom page template, lifestyle Pro

  • This topic has 3 replies, 2 voices, and was last updated 8 years ago by Marcy.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 12, 2015 at 3:17 pm #137235
    Kim Turcotte
    Member

    I am trying to create a testimonials page template where I can pull in all the posts with the category "applause" using a widget area and using the Genesis Featured Widget Amplified which let's me choose whether or not to include title, excerpt or content etc. I would also like to be able to have text that shows above the content I am pulling onto the template.

    I had done this in the past on the older Lifestyle theme by creating a custom page template and registering the sidebar referenced in the custom page template. I tried copying what I did before, but it didn't work with Lifestyle Pro and I have no clue why.

    Here is an example of what I want it to do (this is the old Lifestyle Theme): http://www.goddesslifestyleplan.com/applause-testimonials/

    Here is what I did on the new site I am working on:

    I started by registering an Applause Sidebar with this code added to my functions.php

    genesis_register_sidebar(array(
        'id'        => 'applause',
        'name'=>'Applause',
        'description' => 'This is the widget to customize content on the Applause page template.',
    ));

    Then I created a page template named: page_applause.php

    Here is the code I have in it (this code is from a similar page I created when using the older version of the Lifestyle Theme)

    <?php
    // Template Name: Applause Page
    // For backward compatibility
    
    add_action('genesis_after_post_content', 'featured_bottom_after_content');
    function featured_bottom_after_content() {
        dynamic_sidebar('Applause');
    }
    
    require_once(PARENT_DIR. '/index.php');
    ?>

    When I select the Applause template and try to pull in the content with the featured widget amplified, it isn't working. 🙁

    Any help would be greatly appreciated.

    http://www.goddesslifestyleplan.com/magic/applause-testimonials/
    January 14, 2015 at 6:15 pm #137495
    Marcy
    Participant

    The hook 'genesis_after_post_content' is pre-HTML5 hooks; all the Pro themes are HTML5 which has different hooks.

    I think that I would try using 'genesis_after_entry_content' or maybe 'genesis_after_entry', depending on where you actually want it.

    There are 2 newer plugins to use for your custom post types.
    Genesis Sandbox Featured Content Widget - https://wordpress.org/plugins/genesis-featured-content-widget/
    Featured Custom Post Type - https://github.com/calliaweb/featured-custom-post-type-widget-for-genesis

    The hook guide is in your MyStudioPress under Tutorials. It has the HTML5 and older hooks.


    Marcy | Amethyst Website Design | Twitter

    February 10, 2015 at 1:27 pm #140367
    Kim Turcotte
    Member

    Marcy,

    Thanks so much! This did the trick!

    Kim

    February 10, 2015 at 8:47 pm #140427
    Marcy
    Participant

    I'm glad it worked!


    Marcy | Amethyst Website Design | Twitter

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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