Forum Replies Created
-
AuthorPosts
-
anschoolfield
MemberThis reply has been marked as private.anschoolfield
MemberWell, 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.
anschoolfield
MemberAlrighty,
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!!
anschoolfield
MemberSure,
<?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!
anschoolfield
MemberSome 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!
anschoolfield
Member@Summer -
Did you click the link and look at the site?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!
anschoolfield
MemberYeah, that would have worked as well, thanks for the input!
anschoolfield
MemberAh-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.
anschoolfield
MemberYes, I can't really duplicate it with anything I've tried so far. Thanks for answering!
anschoolfield
Memberoh ok, well thank you!
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. 🙂
anschoolfield
MemberAha thank you! Basically just use Nick the Geek's responsive header plugin, right?
anschoolfield
MemberHmm 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. 🙂
-
AuthorPosts