• 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

anschoolfield

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 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • May 28, 2014 at 1:44 pm in reply to: Can't Register Genesis Sidebar – Fatal Error #107178
    anschoolfield
    Member
    This reply has been marked as private.
    May 28, 2014 at 1:38 pm in reply to: Can't Register Genesis Sidebar – Fatal Error #107176
    anschoolfield
    Member

    Well, I can style it in CSS once it shows up, but basically I want it on the left, vertically centered. I'm going to put a call to action quote and button there.

    May 28, 2014 at 1:32 pm in reply to: Can't Register Genesis Sidebar – Fatal Error #107171
    anschoolfield
    Member

    Alrighty,

    It's not putting out Fatal Error anymore, so we're close! Now to get it to show up what do I need to add to home.php?

    Here's home.php:

    <?php
    /**
     * Home
     *
     * PHP version 5
     *
     * @package  PicturePerfect
     * @author   Agent Evolution <[email protected]>
     * @license  http://www.gnu.org/copyleft/gpl.html GNU General Public License
     * @link     http://themes.agentevolution.com
     */
    
    add_action('genesis_meta', 'picture_perfect_home_genesis_meta');
    
    /**
     * Add widget support for homepage. If no widgets active, display the default loop.
     *
     * @return void
     */
    
    function picture_perfect_home_genesis_meta()
    {
    	$sidebar_widget_areas = array(
    		'home-right',
    	);
    
    	if (false === any_picture_perfect_sidebar_is_active($sidebar_widget_areas)) {
    		add_filter('body_class', 'picture_perfect_blog_home_page_body_class');
    		return;
    	}
    
    	add_filter('genesis_pre_get_option_site_layout', '__genesis_return_full_width_content');
    	remove_action('genesis_after_content', 'genesis_footer_widget_areas', 999);
    
    	# Custom body class
    	add_filter('body_class', 'picture_perfect_custom_home_page_body_class');
    
    	# Remove the loop and add a custom loop
    	remove_action('genesis_loop', 'genesis_do_loop');
    	add_action('genesis_loop', 'picture_perfect_home_loop_helper');
    }
    
    
    /**
     * Adds a custom body class on the home page
     *
     * @param array $classes the current body classes
     *
     * @return array modified classes
     */
    function picture_perfect_blog_home_page_body_class($classes)
    {
       $classes[] = 'blog-home-page';
       return $classes;
    }
    
    /**
     * Adds a custom body class on the home page
     *
     * @param array $classes the current body classes
     *
     * @return array modified classes
     */
    function picture_perfect_custom_home_page_body_class($classes)
    {
       $classes[] = 'custom-home-page';
       return $classes;
    }
    
    /**
     * Display widget content for homepage sections
     *
     * @return void
     */
    function picture_perfect_home_loop_helper()
    {
    	echo '<div class="home-right">';
    
    		picture_perfect_site_title_description_markup();
    
    		if (is_active_sidebar('home-right')) {
    			dynamic_sidebar('home-right');
    		}
    }
    
    /**
     * Returns true if any of the picture_perfect sidebars are active
     *
     * @param array $sidebar_widget_areas registered sidebars for use on home page
     *
     * @return bool
     */
    function any_picture_perfect_sidebar_is_active($sidebar_widget_areas)
    {
    	foreach($sidebar_widget_areas as $sidebar) {
    		if ( is_active_sidebar($sidebar) ) {
    			return true;
    		}
    	}
    
    	return false;
    }
    
    genesis();
    

    I only want it to show up on the home page.

    Thanks!!

    May 28, 2014 at 1:21 pm in reply to: Can't Register Genesis Sidebar – Fatal Error #107166
    anschoolfield
    Member

    Sure,

    <?php
    /**
     * Functions
     *
     * PHP version 5
     *
     * @package  PicturePerfect/Setup
     * @author   Agent Evolution <[email protected]>
     * @license  http://www.gnu.org/copyleft/gpl.html GNU General Public License
     * @link     http://themes.agentevolution.com
     */
    
    if (defined('ABSPATH') === false) {
        die('Sorry, you are not allowed to access this file directly.');
    }
    
    define('AE_CHILD_THEME_NAME', 'Picture Perfect');
    define('AE_CHILD_THEME_SLUG', 'picture-perfect');
    
    require_once 'lib/classes/class-agentevo-helpers.php';
    require_once 'lib/classes/class-agentevo-customizer.php';
    require_once 'lib/classes/class-agentevo-nav-walker.php';
    require_once 'lib/functions/admin.php';
    require_once 'lib/functions/frontend.php';
    
    
    /**
     * Outputs the footer markup
     *
     * @return void
     */
    function picture_perfect_footer()
    {
        ?>
        <div class="one-half first footer-left">
            <?php echo do_shortcode(genesis_get_option('footer-left', 'agentevo-footer-settings')); ?>
        </div>
        <div class="one-half footer-right">
            <?php echo do_shortcode(genesis_get_option('footer-right', 'agentevo-footer-settings')); ?>
        </div>
        <?php
    
        $disclaimer = genesis_get_option('disclaimer', 'agentevo-footer-settings');
    
        if (false === empty($disclaimer)) {
            echo '
            <div class="footer-disclaimer">',
                do_shortcode(wpautop($disclaimer)),
            '</div>';
        }
    }
    
    
    # Include functions that should run in development only
    # Else serve css/style.css
    // if ( isset($_SERVER['SERVER_NAME']) && 'localhost' == $_SERVER['SERVER_NAME'] ) {
    // 	require_once 'lib/classes/class-agentevo-development-setup.php';
    // } else {
    // 	add_filter('stylesheet_uri', 'picture_perfect_stylesheet_uri', 10, 2);
    // }
    
    
    /**
     * Returns the path to the style.css file
     *
     * @return string path to the style.css file
     */
    function picture_perfect_stylesheet_uri($stylesheet_uri, $stylesheet_dir_uri)
    {
    	return $stylesheet_dir_uri . '/style.css';
    }
    
    
    if ( ! get_option('picture_perfect_theme_activation') ) {
    
    	wp_remote_post(
    		'http://themes.agentevolution.com/child-theme-stats',
    		array(
    		 'body' => array(
    		 	 'theme' => 'picture_perfect',
    		 	 'url'   => $_SERVER['SERVER_NAME'],
    		 	)
    		)
    	);
    
    	add_option('picture_perfect_theme_activation', 'yes');
    }
    

    I've been adding the first snippet from your (awesome) tutorial at the very bottom. Usually I put it with the other register sidebar functions, but since there were no others I just put it at the bottom.

    Thanks Andrea!

    May 2, 2014 at 6:46 pm in reply to: Change link of one post in Genesis Featured Post widget #103377
    anschoolfield
    Member

    Some good advice there, @Summer!

    Thanks for the feedback. However, we don't want the annoying-ness of a automatic popup. So we'll probably just have the box link to an optin page instead. I didn't think we could code a popup into that square anyway!

    May 2, 2014 at 5:38 am in reply to: Change link of one post in Genesis Featured Post widget #103304
    anschoolfield
    Member

    @Summer -
    Did you click the link and look at the site?

    http://tresa.myamandadesignplayground.com

    May 1, 2014 at 7:46 pm in reply to: Change link of one post in Genesis Featured Post widget #103258
    anschoolfield
    Member

    🙂 I'm sorry, I didn't explain it very well, you're right lol

    On the Agency Pro theme demo, there is a Genesis - Featured Posts widget in the Home - Middle widget area. So there is a post that corresponds to each square on the home page. The posts each redirect to a page with information on it.

    So far, that has done well, with each cube leading to a page.

    I don't really know why I mentioned that in the OP but oh well. Here's the real issue:

    Now, I'd like the top left box to have a popup with the WP Email Capture in it. The WP Email Capture plugin comes with a shortcode, which I've put inside of the Anything Popup plugin's shortcode. Now I need the Anything Popup shortcode to be pulled when the top left cube is clicked. Actually any popup/lightbox would work.

    I really didn't think it was possible, but the boss wants it haha

    I hope that clears things up pretty well, and sorry for not being clear earlier!

    Thanks for trying to help!

    April 28, 2014 at 5:29 pm in reply to: Squarespace-Like In-Page Nav #102829
    anschoolfield
    Member

    Yeah, that would have worked as well, thanks for the input!

    April 28, 2014 at 4:27 pm in reply to: Squarespace-Like In-Page Nav #102820
    anschoolfield
    Member

    Ah-ha! I'm using the "subpages" shortcode from Shortcodes Ultimate plugin. I wrap the shortcode with a class="one-sixth first" and the content with a class="five-sixths last". Thanks for any energy spent on the question so far, but now I'm setting it as resolved.

    April 28, 2014 at 3:09 pm in reply to: Squarespace-Like In-Page Nav #102804
    anschoolfield
    Member

    Yes, I can't really duplicate it with anything I've tried so far. Thanks for answering!

    April 14, 2014 at 10:42 am in reply to: Executive Pro Responsive Header? #100230
    anschoolfield
    Member

    oh ok, well thank you!

    April 14, 2014 at 10:24 am in reply to: Changing the font size of the post text #100226
    anschoolfield
    Member

    .post .entry-content p{
    font-size: 19px;
    }

    Clip and paste the above into your style.css. That can be found from inside the WordPress dashboard > Appearance > Editor > style.css.

    Of course, you can change the 19px to anything as long as it has the px behind it. 🙂

    April 14, 2014 at 10:10 am in reply to: Executive Pro Responsive Header? #100223
    anschoolfield
    Member

    Aha thank you! Basically just use Nick the Geek's responsive header plugin, right?

    March 29, 2014 at 7:19 pm in reply to: eNews Extended Optin Bar Problems #97354
    anschoolfield
    Member

    Hmm ok, that's a good suggestion, but, the client likes it the way it is, except that at 1250px where I adjust the margin to let it align left. She would rather it stay aligned center, but when I do that, on some resolutions the submit button goes down to another line. The client likes them all on the same line until 1005px. But I do appreciate your suggestion, even though she doesn't like it. 🙂

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 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