• 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

hmistler

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 6 posts - 41 through 46 (of 46 total)
← 1 2 3
  • Author
    Posts
  • December 30, 2014 at 9:03 am in reply to: Make existing widget area full-width above header #135666
    hmistler
    Member

    Thanks for the reply - I tried Carrie Dill's php code to move the header outside the wrap; it actually made my Top Bar segment move further down the page! Using the hook guide, I can see that genesis_before IS outside of the wrap (which in this theme is called "site-container"). I think I need to switch something in the PHP code to make it move the top bar, as the code Carrie wrote moves just the header and this is not part of the header. It is its own div ABOVE the header. Here is what Carrie wrote:

    //* 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 );

    My thought is I need to switch 'header' to 'swank_top_bar' or something. OR change the PHP code from "genesis_before_header" to "genesis_before":

    //* Add Top Bar Above Header
    add_action( 'genesis_before', 'swank_top_bar' );
    function swank_top_bar() {
     
    	echo '<div class="top-bar"><div class="wrap">';
     
    	genesis_widget_area( 'top-bar-left', array(
    		'before' => '<div class="top-bar-left">',
    		'after' => '</div>',
    	) );
    
    	genesis_widget_area( 'top-bar-right', array(
    		'before' => '<div class="top-bar-right">',
    		'after' => '</div>',
    	) );
     
    	echo '</div></div>';
     
    }

    Would ^that code work? I'm nervous to play around with the php too much.

    July 31, 2014 at 11:37 pm in reply to: Remove Sidebar from custom posts or adding sidebar to blog? #116531
    hmistler
    Member

    AH I see what you are saying....that worked perfectly, thank you!!!!

    July 31, 2014 at 11:01 pm in reply to: Remove Sidebar from custom posts or adding sidebar to blog? #116528
    hmistler
    Member

    Unfortunately on those portfolio pages I do not have the option to write in any conditionals; it doesn't give me any layout options as in other genesis page. Still think this may have to go in functions.php I just don't know what the correct code is to remove a sidebar from posts!

    July 31, 2014 at 10:38 pm in reply to: Remove Sidebar from custom posts or adding sidebar to blog? #116526
    hmistler
    Member

    Thanks for the replies...I tried setting the theme's default layout to full width, then checking the content-sidebar option in the page layout on the News page - still nothing. I feel like I might need to add some PHP code to make the sidebar appear, but how?

    Or what code can I add to remove the sidebar from the portfolio pages? I was able to add in PHP code to remove the page title from the individual portfolio pages, so I know they can be tweaked in the main functions.php file.

    July 18, 2014 at 11:02 am in reply to: Drop Shadow / full width image under header in Modern Portfolio #114814
    hmistler
    Member

    Thanks! I purchased the Genesis Extender plugin and I'm working with that now - I think in order to do what I want I will have to build out a bunch of widgets, as I've heard many people talk about doing. Thanks for the push in the right direction!

    May 12, 2014 at 1:01 pm in reply to: new portfolio based on modern portfolio #104707
    hmistler
    Member

    Love your site! Very clean & beautiful. I'm also curious about your icons - how did you get them to change color on the rollover? I thinking of adding some images to my site and having the images change on a roll over, but haven't gotten that far yet.

  • Author
    Posts
Viewing 6 posts - 41 through 46 (of 46 total)
← 1 2 3
« Previous Page

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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