• 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

fortyfivecreative

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 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • April 14, 2014 at 3:50 am in reply to: CSS menu styling issues (1.9 child theme) #100143
    fortyfivecreative
    Member
    This reply has been marked as private.
    February 19, 2014 at 4:23 am in reply to: Latest Posts on Front Page #91108
    fortyfivecreative
    Member

    Thanks, but in order to use the Genesis column classes I would need to apply column specific CSS rules 'one-third' 'one-third first'. I was hoping to do this entire task via function rather than using the widget and adding additional CSS.

    David

    February 5, 2014 at 9:22 am in reply to: Conditional or appended menus #88763
    fortyfivecreative
    Member

    Solved with a simpler solution. I added the full paths to the menu links, rather then just the anchor, e.g.

    http://tok.hostfortyfive.co.uk/#menus

    August 21, 2013 at 2:42 am in reply to: Recent Posts From Category #57860
    fortyfivecreative
    Member

    Hi Susan,

    Best of luck with the unanswered posts! Unfortunately I haven't had a response so any help would be appreciated.

    Thanks

    April 11, 2013 at 5:48 am in reply to: Enqueue Style Problem #34713
    fortyfivecreative
    Member

    Perfect, thanks Gary...

    February 22, 2013 at 7:02 am in reply to: CSS menu styling issues (1.9 child theme) #22212
    fortyfivecreative
    Member
    This reply has been marked as private.
    January 30, 2013 at 4:59 pm in reply to: Multiple Sidebar Registration Help #16552
    fortyfivecreative
    Member

    Great, thanks for all your help. Much appreciated.

    David

    January 30, 2013 at 4:56 pm in reply to: Multiple Sidebar Registration Help #16549
    fortyfivecreative
    Member

    Sorry, wasn't clear, I just meant will:
    echo ‘<div id=”sidebar” class=”sidebar widget-area”>’;
    dynamic_sidebar( ‘category_archive_sidebar’ );
    echo ‘</div>’;
    ...create a complete sidebar with all the correct CSS?

    Thanks again

    David

     

    January 30, 2013 at 4:39 pm in reply to: Multiple Sidebar Registration Help #16544
    fortyfivecreative
    Member

    Thanks again, and can I finally just ask you to check the sytnax of these parts of the code:

     
    function category_archive_sidebar()  {
    echo ‘<div id=”sidebar” class=”sidebar widget-area”>’;
    dynamic_sidebar( ‘category_archive_sidebar’ );
    echo ‘</div>’;
    }
    AND
    remove_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ );
    add_action( ‘genesis_after_content’, ‘single_post_sidebar’ );

    Are these complete and inline with the latest framework CSS structure?

    Thanks
    David
     

    January 30, 2013 at 4:28 pm in reply to: Multiple Sidebar Registration Help #16539
    fortyfivecreative
    Member

    Thanks. I actually think I need to ask about 'best practice' for adding the new sidebars. I've used the following code to add the sidebars without any additional PHP files, but not sure whether this is better or worse than doing this via sidebar-xx.php:
    //* 45: Create and add new sidebars */
    genesis_register_sidebar( array(
    'id' => 'single-post-sidebar',
    'name' => __( 'Single Post Sidebar', 'genesis' ),
    'description' => __( 'This is the single post sidebar.', 'genesis' ),
    ) );

    genesis_register_sidebar( array(
    'id' => 'category_archive_sidebar',
    'name' => __( 'Category Archive Sidebar', 'genesis' ),
    'description' => __( 'This is the category archive sidebar.', 'genesis' ),
    ) );

    genesis_register_sidebar( array(
    'id' => 'tag_archive_sidebar',
    'name' => __( 'Tag Archive Sidebar', 'genesis' ),
    'description' => __( 'This is the tag archive sidebar.', 'genesis' ),
    ) );

    function single_post_sidebar()  {
    echo '<div id="sidebar" class="sidebar widget-area">';
    dynamic_sidebar( 'single-post-sidebar' );
    echo '</div>';
    }

    function category_archive_sidebar()  {
    echo '<div id="sidebar" class="sidebar widget-area">';
    dynamic_sidebar( 'category_archive_sidebar' );
    echo '</div>';
    }

    function tag_archive_sidebar()  {
    echo '<div id="sidebar" class="sidebar widget-area">';
    dynamic_sidebar( 'tag_archive_sidebar' );
    echo '</div>';
    }

    function include_new_sidebar() {
    if ( is_single() ) {
    remove_action( 'genesis_after_content', 'genesis_get_sidebar' );
    add_action( 'genesis_after_content', 'single_post_sidebar' );
    } else if ( is_category() ) {
    remove_action( 'genesis_after_content', 'genesis_get_sidebar' );
    add_action( 'genesis_after_content', 'category_archive_sidebar' );
    } else if ( is_tag() ) {
    remove_action( 'genesis_after_content', 'genesis_get_sidebar' );
    add_action( 'genesis_after_content', 'tag_archive_sidebar' );
    }
    }
    add_action('get_header', 'include_new_sidebar');

    December 11, 2012 at 7:08 am in reply to: Custom Body Class on Sub Page 'Depth=3' #4479
    fortyfivecreative
    Member

    Perfect, thanks Jen.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)

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