• 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

rfichtinger

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 7 posts - 21 through 27 (of 27 total)
← 1 2
  • Author
    Posts
  • June 30, 2015 at 5:40 pm in reply to: Utility bar in Streamline Pro #157991
    rfichtinger
    Member

    Ginger,

    Thanks for your help!

    Here is the functions.php code:

    <?php
    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );

    //* Setup Theme
    include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' );

    //* Set Localization (do not remove)
    load_child_theme_textdomain( 'lifestyle', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'lifestyle' ) );

    //* Child theme (do not remove)
    define( 'CHILD_THEME_NAME', __( 'Lifestyle Pro Theme', 'lifestyle' ) );
    define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/lifestyle/' );
    define( 'CHILD_THEME_VERSION', '3.1' );

    //* Add HTML5 markup structure
    add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );

    //* Add viewport meta tag for mobile browsers
    add_theme_support( 'genesis-responsive-viewport' );

    //* Enqueue Scripts
    add_action( 'wp_enqueue_scripts', 'lifestyle_load_scripts' );
    function lifestyle_load_scripts() {

    wp_enqueue_script( 'lifestyle-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );

    wp_enqueue_style( 'dashicons' );

    wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Droid+Sans:400,700|Roboto+Slab:400,300,700', array(), CHILD_THEME_VERSION );

    }

    //* Add new image sizes
    add_image_size( 'home-large', 634, 360, TRUE );
    add_image_size( 'home-small', 266, 160, TRUE );

    //* Add support for custom background
    add_theme_support( 'custom-background', array(
    'default-image' => get_stylesheet_directory_uri() . '/images/bg.png',
    'default-color' => 'efefe9',
    ) );

    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    'header_image' => '',
    'header-selector' => '.site-title a',
    'header-text' => false,
    'height' => 91,
    'width' => 263,
    ) );

    //* Add support for additional color style options
    add_theme_support( 'genesis-style-selector', array(
    'lifestyle-pro-blue' => __( 'Lifestyle Pro Blue', 'lifestyle' ),
    'lifestyle-pro-green' => __( 'Lifestyle Pro Green', 'lifestyle' ),
    'lifestyle-pro-mustard' => __( 'Lifestyle Pro Mustard', 'lifestyle' ),
    'lifestyle-pro-purple' => __( 'Lifestyle Pro Purple', 'lifestyle' ),
    'lifestyle-pro-red' => __( 'Lifestyle Pro Red', 'lifestyle' ),
    ) );

    //* Reposition the primary navigation
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_nav' );

    //* Modify the size of the Gravatar in the author box
    add_filter( 'genesis_author_box_gravatar_size', 'lifestyle_author_box_gravatar' );
    function lifestyle_author_box_gravatar( $size ) {

    return 96;

    }

    //* Modify the size of the Gravatar in the entry comments
    add_filter( 'genesis_comment_list_args', 'lifestyle_comments_gravatar' );
    function lifestyle_comments_gravatar( $args ) {

    $args['avatar_size'] = 60;
    return $args;

    }

    //* Remove comment form allowed tags
    add_filter( 'comment_form_defaults', 'lifestyle_remove_comment_form_allowed_tags' );
    function lifestyle_remove_comment_form_allowed_tags( $defaults ) {

    $defaults['comment_notes_after'] = '';
    return $defaults;

    }

    //* Add support for 3-column footer widgets
    add_theme_support( 'genesis-footer-widgets', 3 );

    //* Add support for after entry widget
    add_theme_support( 'genesis-after-entry-widget-area' );

    //* Relocate after entry widget
    remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
    add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );

    //* Register widget areas

    genesis_register_sidebar( array(
    'id' => 'home-top',
    'name' => __( 'Home - Top', 'lifestyle' ),
    'description' => __( 'This is the top section of the homepage.', 'lifestyle' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-middle',
    'name' => __( 'Home - Middle', 'lifestyle' ),
    'description' => __( 'This is the middle section of the homepage.', 'lifestyle' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-bottom-left',
    'name' => __( 'Home - Bottom Left', 'lifestyle' ),
    'description' => __( 'This is the bottom left section of the homepage.', 'lifestyle' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-bottom-right',
    'name' => __( 'Home - Bottom Right', 'lifestyle' ),
    'description' => __( 'This is the bottom right section of the homepage.', 'lifestyle' ),
    ) );

    /** Reposition header outside main wrap */
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ) ;

    add_action( 'genesis_before', 'genesis_header_markup_open', 5 );
    add_action( 'genesis_before', 'genesis_do_header' );
    add_action( 'genesis_before', 'genesis_header_markup_close', 15 );

    /** Reposition footer outside main wrap */
    remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ) ;

    add_action( 'genesis_after', 'genesis_footer_markup_open', 5 );
    add_action( 'genesis_after', 'genesis_do_footer' );
    add_action( 'genesis_after', 'genesis_footer_markup_close', 15 );

    /** Register Utility Bar Widget Areas. */

    genesis_register_sidebar( array(
    'id' => 'utility-bar-left',
    'name' => __( 'Utility Bar Left', 'theme-prefix' ),
    'description' => __( 'This is the left utility bar above the header.', 'theme-prefix' ),
    ) );

    genesis_register_sidebar( array(
    'id' => 'utility-bar-right',
    'name' => __( 'Utility Bar Right', 'theme-prefix' ),
    'description' => __( 'This is the right utility bar above the header.', 'theme-prefix' ),
    ) );

    add_action( 'genesis_before_header', 'utility_bar' );
    /**
    * Add utility bar above header.
    *
    * @author Carrie Dils
    * @copyright Copyright (c) 2013, Carrie Dils
    * @license GPL-2.0+
    */
    function utility_bar() {

    echo '<div class="utility-bar"><div class="wrap">';

    genesis_widget_area( 'utility-bar-left', array(
    'before' => '<div class="utility-bar-left">',
    'after' => '</div>',
    ) );

    genesis_widget_area( 'utility-bar-right', array(
    'before' => '<div class="utility-bar-right">',
    'after' => '</div>',
    ) );

    echo '</div></div>';

    }

    June 30, 2015 at 4:06 pm in reply to: Utility bar in Streamline Pro #157986
    rfichtinger
    Member

    Ginger,

    I just updated the functions file and it's still the same.

    Any other thoughts?

    Thanks,
    Bob

    June 17, 2015 at 5:22 pm in reply to: Streamline Pro Home Page Meta-Data info #156598
    rfichtinger
    Member

    Thanks!

    That took the information out, but I still have the unwanted area / gray box.

    Any thoughts?

    - Bob

    October 3, 2014 at 8:22 pm in reply to: Adding a Category RSS feed #126729
    rfichtinger
    Member

    Yes - that worked! I thought I tried that...

    Thanks,
    Bob

    October 2, 2014 at 7:54 pm in reply to: Streamline Pro – Moving Home Featured Content Below Main Content Area #126610
    rfichtinger
    Member

    Thanks!

    I tried to repopulate the widget area again and it did not work. What does changing the hook look like?

    Thanks again,

    Bob

    October 2, 2014 at 5:38 am in reply to: Streamline Pro – Moving Home Featured Content Below Main Content Area #126523
    rfichtinger
    Member

    Brad,

    Thanks for your time. I've made the change and now the featured widgets are missing. Do I need to add space for them to appear. Any thoughts?

    Thanks,
    Bob

    bethelchristianschool.net

    February 3, 2013 at 3:39 pm in reply to: Crystal Theme Top Menu Positioning #17685
    rfichtinger
    Member

    Simple. Thank-you!

  • Author
    Posts
Viewing 7 posts - 21 through 27 (of 27 total)
← 1 2
« Previous Page

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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