Forum Replies Created
-
AuthorPosts
-
buddy_boy8403Participant
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.
buddy_boy8403ParticipantVictor:
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?
buddy_boy8403ParticipantThank you.
buddy_boy8403ParticipantThanks, but what are the correct sizes I need to regenerate to for this theme?
buddy_boy8403ParticipantI should clarify - I think it is the thumbnail size that is throwing it off. What recommended thumbnail sizes should I have for new pro?
buddy_boy8403ParticipantAwesome, Nick... Thanks for the snippet.
buddy_boy8403ParticipantIf 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 #50468buddy_boy8403ParticipantI 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 #50449buddy_boy8403ParticipantWhen 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
buddy_boy8403ParticipantTry adding the following to your child theme's style.css file:
.flexslider .slides img {
display: block;
width: 1140px;
}buddy_boy8403ParticipantYou 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 #32570buddy_boy8403ParticipantCan you post a link to your site so we can see it first hand?
buddy_boy8403ParticipantIf 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.
buddy_boy8403ParticipantThis reply has been marked as private.buddy_boy8403ParticipantUsing 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.
buddy_boy8403ParticipantI'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.
buddy_boy8403ParticipantChris:
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.
buddy_boy8403ParticipantIsn't this a duplicate of:
Asking the same thing in different threads is not seen as a good thing...
buddy_boy8403ParticipantTed: 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:
http://designsbynickthegeek.com/tutorials/conditional-page-content
buddy_boy8403ParticipantNevermind - I fixed it with this:
h1#title {
visibility: hidden;
} -
AuthorPosts