• 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

Need help with Mag Pro "after entry" and "right header" widgets

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 › Need help with Mag Pro "after entry" and "right header" widgets

This topic is: not resolved

Tagged: after entry widget, Magazine Pro, right header widget

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 2 months ago by worldviewpr.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 6, 2013 at 1:07 pm #77412
    worldviewpr
    Member

    Greetings..

    I need help understanding some elements pertaining to Mag Pro "after entry" and "right header" widgets.

    What are the standard or recommended sizes for each? Would after entry be max 750px width or whatever the max width of the content area is? Can it be made to appear before title? Or does it only appear after the post but before (or after) the comment section?

    Question about Right Header widget is more about size. I notice that since I have a longer site name on the left hand part of header in title area, when I put anything into the right header it turns title from a one liner into two or three lines.

    http://halfwaytoconcord.com
    December 7, 2013 at 9:10 am #77534
    Sridhar Katakam
    Participant

    Would after entry be max 750px width or whatever the max width of the content area is?

    Whatever is the max width of content area.

    Can it be made to appear before title? Or does it only appear after the post but before (or after) the comment section?

    You can register a new "Before Entry" widget area and use it.

    Add this in functions.php:

    genesis_register_sidebar( array(
    	'id'          => 'before-entry',
    	'name'        => __( 'Before Entry', 'magazine' ),
    	'description' => __( 'This is the before entry section.', 'magazine' ),
    ) );
    
    //* Hooks before-entry widget area to single posts
    add_action( 'genesis_before_entry', 'magazine_before_entry_widget'  );
    function magazine_before_entry_widget() {
    
        if ( ! is_singular( 'post' ) )
        	return;
    
        genesis_widget_area( 'before-entry', array(
    		'before' => '<div class="before-entry widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
        ) );
    
    }

    and this in style.css:

    .before-entry {
    	border-bottom: 2px solid #222222;
    	padding-bottom: 3rem;
    	margin-bottom: 4rem;
    }

    Question about Right Header widget is more about size. I notice that since I have a longer site name on the left hand part of header in title area, when I put anything into the right header it turns title from a one liner into two or three lines.

    Add the following in child theme's style.css:

    .title-area {
        padding-top: 0;
    }
    
    .site-title {
        font-size: 3.2rem;
    }

    to get http://i.imgur.com/Wxvcekk.png


    Genesis Tutorials | Follow me on Twitter

    December 7, 2013 at 2:57 pm #77575
    worldviewpr
    Member

    The Before-Entry php and css appears to work, but on testing, it looks like actual usage is—one or the other, not both—as identical text widgets in both would only show the Before Entry image and not the same image in the After Entry area. Not a nig deal, but Is this by design?

    For the Header css I am confused about where to put that snippet.

    In the section on TITLE AREA?

    If so, there is already a couple lines at the bottom of that section

    .title-area {
       padding-top: 0;
    }
    

    Would I then just add the second phrase of the snippet

    .site-title {
        font-size: 3.2rem;
    }
    

    Below the above or duplicate?

    thanks.

    December 7, 2013 at 4:46 pm #77579
    worldviewpr
    Member

    Actually, now that I double checked, the before entry widget works buyt the after entry widget does not.

  • 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