• 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

pgleave

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 22, 2015 at 12:44 am in reply to: Styling blog pages #157109
    pgleave
    Member

    If it's what I think (header to appear on blog page and single post page only), you can create template files for each in the theme, and add a widget to those templates to hook into the header so that it appears on those pages only (globally).

    If you try this - make sure to back up your theme / site first - this works but comes with no guarantee.

    Eg: This is how you can do this on the single post view:

    1. Add the widget to the theme functions.php (these are at the end), and add this straight after the //* Register widget areas comment:

    genesis_register_sidebar( array(
    'id' => 'blog-widget',
    'name' => __( 'Blog Widget', 'altitude' ),
    'description' => __( 'This is a widget to appear on blog pages.', 'altitude' ),
    ) );

    If you go to appearance -> widgets you'll have a new widget called blog widget. You can add the image to that.

    2. Now you need to call up that widget to the single post template and hook into Genesis for display.

    Theme doesn't have one, as it uses the one from Genesis - so you need to create it. Create a file called single.php.

    Add this code:

    <?php
    /**
    * This file adds a single post template to the Altitude Pro Theme.
    *
    */

    add_action( 'genesis_before_content_sidebar_wrap', 'ttid_blog_widget', 5);

    function ttid_blog_widget() {
    genesis_widget_area( 'blog-widget', array(
    'before' => '<div class="blog-widget">',
    'after' => '</div>',
    ) );

    }
    //* Run the Genesis loop
    genesis();

    You then have a widget that appears globally on single post pages of your site - you can style it with css.
    NB; The function above has to be unique but can have any name. I chose 'ttid_blog_widget' (ttid prefix to stand for This Track Is Dope). It just needs to have a unique name.


    I love to design

    June 21, 2015 at 11:29 pm in reply to: Problem with my header image #157107
    pgleave
    Member

    It could be an additional container restricting the height. If you know which theme you're using, I can take a look.


    I love to design

    June 21, 2015 at 11:11 pm in reply to: Modern Portfolio Pro – Background & Menu help #157101
    pgleave
    Member

    Good point. Add

    background-size: cover;

    to your #about declaration to achieve the same effects as Parallax (if that's the case)

    I'd still encourage adding smaller sized images to your media queries, just so people on smaller devices get a faster site load.


    I love to design

    June 21, 2015 at 10:45 pm in reply to: Modern Portfolio Pro – Background & Menu help #157097
    pgleave
    Member

    Hi,

    There are actually no defined dimensions for the widget area, as the theme is mobile responsive. The About section is a full browser width area, and the height is defined by whatever content is placed.

    Here's the css to stop the image repeating, and centre it:

    #about {
    background: url("yourimagelinkhere") no-repeat;
    padding: 60px 0 36px;
    background-position: center;
    }

    You'd then need to size the image to what you think is best: ie: wide enough for people using wide screens if you want it to bleed off, and high enough, say, for your slider (in your case 630px).

    Just be aware that if the image is that size, people on mobile devices will be downloading a larger image than they need (ie file size).

    That can be solved by adding another css entry in the media queries for smaller screens, referencing an image sized down for that screen width (ie one for iPads, one for mobile).


    I love to design

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

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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