• 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

buddy_boy8403

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 20 posts - 1 through 20 (of 113 total)
1 2 3 4 5 6 →
  • Author
    Posts
  • March 18, 2019 at 2:24 pm in reply to: News Pro – How to duplicate home page widget areas #490121
    buddy_boy8403
    Participant

    I've added the following to functions.php:

    //Adam- Register widget areas to duplicate top home page
    
    genesis_register_sidebar( array(
    
    	'id'          => 'home-top-lower',
    
    	'name'        => __( 'Home - Top - Lower', 'news-pro' ),
    
    	'description' => __( 'This is the lower top section of the homepage.', 'news-pro' ),
    
    ) );
    
    genesis_register_sidebar( array(
    
    	'id'          => 'home-middle-left-lower',
    
    	'name'        => __( 'Home - Middle Left - Lower', 'news-pro' ),
    
    	'description' => __( 'This is the lower middle left section of the homepage.', 'news-pro' ),
    
    ) );
    
    genesis_register_sidebar( array(
    
    	'id'          => 'home-middle-right-lower',
    
    	'name'        => __( 'Home - Middle Right - Lower', 'news-pro' ),
    
    	'description' => __( 'This is the lower middle right section of the homepage.', 'news-pro' ),
    
    ) );
    
    genesis_register_sidebar( array(
    
    	'id'          => 'home-bottom-lower',
    
    	'name'        => __( 'Home - Bottom - Lower', 'news-pro' ),
    
    	'description' => __( 'This is the lower bottom section of the homepage.', 'news-pro' ),
    
    ) );

    Modified the function news_home_genesis_meta() in front-page.php to:

    	if ( is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-top-lower' ) || is_active_sidebar( 'home-middle-left' ) || is_active_sidebar( 'home-middle-left-lower' ) || is_active_sidebar( 'home-middle-right' ) || is_active_sidebar( 'home-middle-right-lower' ) || is_active_sidebar( 'home-bottom' ) || is_active_sidebar( 'home-bottom-lower' ) ) {
    
    		// Force content-sidebar layout setting.
    
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
    
    		// Add news-home body class.
    
    		add_filter( 'body_class', 'news_body_class' );
    
    		// Add content heading.
    
    		add_action( 'genesis_before_loop', 'news_content_heading' );
    
    	}
    
    	if ( is_active_sidebar( 'home-top' ) ) {
    
    		// Add excerpt length filter.
    
    		add_action( 'genesis_before_loop', 'news_top_excerpt_length' );
    
    		// Add homepage widgets.
    
    		add_action( 'genesis_before_loop', 'news_homepage_top_widget' );
    
    		// Remove excerpt length filter.
    
    		add_action( 'genesis_before_loop', 'news_remove_top_excerpt_length' );
    
    	}
    
    	if ( is_active_sidebar( 'home-middle-left' ) || is_active_sidebar( 'home-middle-left-lower' ) || is_active_sidebar( 'home-middle-right' ) || is_active_sidebar( 'home-middle-right-lower' ) || is_active_sidebar( 'home-bottom' ) || is_active_sidebar( 'home-bottom-lower' ) || is_active_sidebar( 'home-top-lower' ) ) {
    
    		// Remove the default Genesis loop.
    
    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    
    		// Add homepage widgets.
    
    		add_action( 'genesis_loop', 'news_homepage_widgets' );
    
    	}
    
    }

    And used the following to output the widget areas in front-page.php:

    // Output the home-top-lower widget area.
    
    function news_homepage_top_lower_widget() {
    
    	genesis_widget_area( 'home-top-lower', array(
    
    		'before' => '<div class="home-top-lower widget-area">',
    
    		'after'  => '</div>',
    
    	) );
    
    }
    
    // Output the home-middle and home-bottom widget areas.
    
    function news_homepage_lower_widgets() {
    
    	if ( is_active_sidebar( 'home-middle-left-lower' ) || is_active_sidebar( 'home-middle-right-lower' ) ) {
    
    		echo '<div class="home-middle-lower">';
    
    		genesis_widget_area( 'home-middle-left-lower', array(
    
    			'before' => '<div class="home-middle-left-lower widget-area">',
    
    			'after'  => '</div>',
    
    		) );
    
    		genesis_widget_area( 'home-middle-right-lower', array(
    
    			'before' => '<div class="home-middle-right-lower widget-area">',
    
    			'after'  => '</div>',
    
    		) );
    
    		echo '</div>';
    
    	}
    
    	genesis_widget_area( 'home-bottom-lower', array(
    
    		'before' => '<div class="home-bottom-lower widget-area">',
    
    		'after'  => '</div>',
    
    	) );
    
    }

    No php errors are thrown on the page, and the new widget areas do show in the back end. When I add content to them, nothing displays on the home page. Tried deleting cache and reloading the page - nada. When I try to follow other tutorials I find online, the site breaks. Can you tell me what I'm doing wrong? Again, the objective is to duplicate the four News Pro widget areas further on down the page using the exact same styling.

    March 18, 2019 at 12:32 pm in reply to: News Pro – How to duplicate home page widget areas #490118
    buddy_boy8403
    Participant

    Victor:

    I'm having trouble with this. Is there a tutorial somewhere that walks through these steps as an example specific to the News Pro theme?

    March 15, 2019 at 7:29 am in reply to: Recommended News Pro Thumbnail Sizes #490078
    buddy_boy8403
    Participant

    Thank you.

    March 12, 2019 at 10:12 am in reply to: News Pro Home Bottom Featured Posts #489990
    buddy_boy8403
    Participant

    Thanks, but what are the correct sizes I need to regenerate to for this theme?

    March 12, 2019 at 9:16 am in reply to: News Pro Home Bottom Featured Posts #489985
    buddy_boy8403
    Participant

    I should clarify - I think it is the thumbnail size that is throwing it off. What recommended thumbnail sizes should I have for new pro?

    May 10, 2014 at 3:39 pm in reply to: Integration with Jetpack Infinite Scroll #104474
    buddy_boy8403
    Participant

    Awesome, Nick... Thanks for the snippet.

    May 10, 2014 at 3:23 pm in reply to: how to insert a #104472
    buddy_boy8403
    Participant

    If you want to put some text under the title of each nav menu button, you can go to:

    Appearance > Menus > Screen Options (at the top right of the page) > Click the checkbox for 'Description'

    Then for each parent menu item, click the down arrow and write whatever you want in the description field. Save the menus and as long as your theme supports menu descriptions, it will appear.

    July 12, 2013 at 4:08 pm in reply to: Genesis Responsive Slider Not Working With WooCommerce Products #50468
    buddy_boy8403
    Participant

    I was able to resolve this. Anitac, you got me to the right spot, The problem was with the single quotes. Fixed those and it fixed the issue.

    July 12, 2013 at 2:44 pm in reply to: Genesis Responsive Slider Not Working With WooCommerce Products #50449
    buddy_boy8403
    Participant

    When I do that I get this:

    Parse error: syntax error, unexpected T_STRING in /home/donaldsa/public_html/ourchurchnetwork.com/wp-content/themes/enterprise/home.php on line 21

    April 1, 2013 at 9:27 pm in reply to: Responsive Slider Image not showing full width #32573
    buddy_boy8403
    Participant

    Try adding the following to your child theme's style.css file:

    .flexslider .slides img {
    display: block;
    width: 1140px;
    }

    April 1, 2013 at 9:15 pm in reply to: News Theme Increase Header #32571
    buddy_boy8403
    Participant

    You need to use something like FileZilla to FTP to your server and go to public_html > wp-content > themes > your theme > functions.php and you can open the file to edit from there.

    April 1, 2013 at 9:12 pm in reply to: menu-item-url for homepage in database holing on to test url #32570
    buddy_boy8403
    Participant

    Can you post a link to your site so we can see it first hand?

    April 1, 2013 at 9:10 pm in reply to: Setting up conditions for hooks #32569
    buddy_boy8403
    Participant

    If I were doing it, I would use the same methodology for this that I outlined in the other thread.  Create a new sidebar area and use conditional logic to display what you want on the appropriate pages.

    April 1, 2013 at 9:00 pm in reply to: Enterprise theme – Creating CSS sprites. #32567
    buddy_boy8403
    Participant
    This reply has been marked as private.
    April 1, 2013 at 8:32 pm in reply to: Outreach and responsive slider #32564
    buddy_boy8403
    Participant

    Using Firebug, when I delete the following on line 538, everything lines up like it should:

    width: 920px !important;

    So try deleting or commenting that out and then see if that works.

    April 1, 2013 at 8:15 pm in reply to: Enterprise theme – Creating CSS sprites. #32562
    buddy_boy8403
    Participant

    I've used it on both the enterprise theme and the news theme and it's worked well for me. True it does exclude some things, but it's quick, easy and it does help page speed. It suited my needs.

    April 1, 2013 at 7:59 pm in reply to: Enterprise theme – Creating CSS sprites. #32557
    buddy_boy8403
    Participant

    Chris:

    This is very easy using SpriteMe (http://spriteme.org/). Just drag the SpriteMe link to your bookmark toolbar, then go to your website, go to favorites, click on SpriteMe, run it, it will generate the sprite images and the CSS that you need to put in your enterprise theme's style.css file. The image file it generates needs to go into the enterprise images directory.

    April 1, 2013 at 7:53 pm in reply to: Setting up conditions for hooks #32556
    buddy_boy8403
    Participant

    Isn't this a duplicate of:

    How to set up conditions on sidebar text widget?

    Asking the same thing in different threads is not seen as a good thing...

    April 1, 2013 at 7:51 pm in reply to: How to set up conditions on sidebar text widget? #32555
    buddy_boy8403
    Participant

    Ted: Sounds like it would be best to set up seperate sidebars, one for each category, and use conditional logic to display one and hide the rest. Check out Nick The Geek's website for conditional logic tips:

    How to Load a New Section on Specific Pages

    April 1, 2013 at 7:11 pm in reply to: Weird Logo Formatting – News Theme #32546
    buddy_boy8403
    Participant

    Nevermind - I fixed it with this:

    h1#title {
    visibility: hidden;
    }

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 113 total)
1 2 3 4 5 6 →

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