Forum Replies Created
-
AuthorPosts
-
January 25, 2014 at 2:51 pm in reply to: Grid loop (Bill Erickson version) – content limit for features #86997Dorian SpeedMember
I realized I never came back to this thread to post the solution. Credit goes to Bill Erickson and Brandon Kraft for assistance with this. Here's the entirety of the front-page.php file I used (site is http://hisrocketman.com) to implement a grid loop with one limit for features and a different limit for teasers.
<?php /** * Front Page * * @author Bill Erickson <[email protected]> * @copyright Copyright (c) 2011, Bill Erickson * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * */ function custom_excerpt_length( $length ) { return 500; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999); /** * Grid Content * Change the number of words in excerpt if in the grid loop */ function be_grid_content() { // First, we make sure we're in the grid loop. if( ! apply_filters( 'is_genesis_grid_loop', false ) ) return; // Change length if teaser if( in_array( 'one-half teaser', get_post_class() ) ) { $length = 40; } else { $length = 200; //print_r(get_post_class()); } echo '<p>' . wp_trim_words( get_the_excerpt(), $length ) . '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">[Continue Reading]</a>' . '</p>'; // Remove default content so we don't get both remove_action( 'genesis_post_content', 'genesis_do_post_content' ); } add_action( 'genesis_post_content', 'be_grid_content', 9 ); /** * Remove Post Meta on Teasers */ function be_archive_post_meta( $post_meta ) { if( in_array( 'one-half teaser', get_post_class() ) ) remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); remove_action( 'genesis_before_post_content', 'genesis_post_info' ); } add_action('genesis_before_post', 'be_archive_post_meta'); genesis(); ?>
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberFind the following code in front-page.php
//* Genesis grid loop function minimum_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 0, 'feature_image_size' => 0, 'feature_content_limit' => 0, 'grid_image_size' => 0, 'grid_content_limit' => 250, 'more' => __( '[Read more]', 'minimum' ), ) ); } else { genesis_standard_loop(); } }
Replace it with this (changing the grid content limit to zero):
//* Genesis grid loop function minimum_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 0, 'feature_image_size' => 0, 'feature_content_limit' => 0, 'grid_image_size' => 0, 'grid_content_limit' => 0, 'more' => __( '[Read more]', 'minimum' ), ) ); } else { genesis_standard_loop(); } }
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberTry this instead:
//Use a different sidebar on this page template add_action('get_header','ds_change_genesis_sidebar'); function ds_change_genesis_sidebar() { remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); //remove the default genesis sidebar add_action( 'genesis_sidebar', 'ds_do_sidebar' ); //add an action hook to call the function for my custom sidebar } //Function to output my custom sidebar function ds_do_sidebar() { dynamic_sidebar( 'my-new-sidebar' ); }
Here's a related tutorial from Carrie Dils:
http://www.carriedils.com/sidebar-custom-post-type/
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberThis reply has been marked as private.Dorian SpeedMemberThis reply has been marked as private.Dorian SpeedMemberAre you talking about changing the number of featured posts displayed in that widgeted area?
Are you using the Genesis Featured Posts widget, or did you install the Genesis Featured Widget Amplified plugin?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberHi, Rob - can you post a link to your site?
When you say that they're the same in the CSS, I assume you mean that the primary and the secondary navigation are the same? There should be a section in the sample theme specific to the primary navigation and one for the secondary. So, for the primary, it would be something like:
.nav-primary a:hover,
.nav-primary .current-menu-item > a {
color: #fff;
}And for the secondary, it will be .nav-secondary instead.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberHi there - I believe you could modify this using Bill Erickson's Genesis Grid Loop plugin:
http://wordpress.org/plugins/genesis-grid-loop/That would let you set up two-column layouts on specific sections of the site.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!October 19, 2013 at 11:11 pm in reply to: How to create wintersong author widget in another theme #67754Dorian SpeedMemberHi, Bazil - in Wintersong, that's actually a modification of the header, but you can accomplish something similar using a Genesis Author widget and modifying your style.css file.
I highly recommend using Firebug to find the CSS that controls different elements on your site. We have a tutorial for using Firebug here: http://www.studiopress.com/tips/using-firebug.htm. I'd take a look at the Wintersong demo and go from there, using Firebug to suss out how that section is formatted.
The round avatar is achieved with the border-radius property in CSS. In Wintersong, the code is:
.site-header .avatar,
.site-header .site-avatar img {
border-radius: 50%;
display: block;
float: none;
height: 112px;
margin: 0 auto 30px;
margin: 0 auto 3rem;
width: 112px;
}
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberHi - can you post a link to your site? Generally, you can use the Firebug extension for Firefox to inspect the layout and CSS for your site. Each of those elements is going to have specific properties you can alter.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberHi, Heidi - can you elaborate on what you mean? I see that you have a logo in place on your site on the left. Are you wanting to add a section above the header that could include an image?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!July 22, 2013 at 5:19 pm in reply to: My structural wraps are neither structured nor wrapping #51950Dorian SpeedMemberYes! Gary Jones, WordPress super genius, helped me out. I needed a min-width.
.wrap {
margin: 0 auto;
width: 1152px;
}#wrap {
background: url(images/bg.png) repeat-x transparent;
margin: 0 auto;
min-width: 1152px;
}
Thanks for everyone's assistance!
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!July 22, 2013 at 2:07 pm in reply to: My structural wraps are neither structured nor wrapping #51902Dorian SpeedMemberOh, forgot to add that - yeah, I tried it with AND without the viewport tag. No difference. Sad trombone.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!July 22, 2013 at 1:56 pm in reply to: My structural wraps are neither structured nor wrapping #51898Dorian SpeedMemberThanks - yeah, I tried those suggestions and the Internet still hates me, so I'm not sure what else to do. It feels like what happens is that the site sets the width of these elements as the same as the viewport, so if you zoom back out, it's cut those off at that point.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!July 11, 2013 at 11:05 pm in reply to: Disabling responsive design, for phones, on an individual page #50329Dorian SpeedMemberSo - what's the deal? You want people to be able to see all five sections at once without a whole bunch of scrolling? Is that the menu you're talking about, or am I missing something?
What about if you...
Create a class that ONLY displays on mobile devices.
Create a bulleted list in the intro paragraph about "check out all of these amazing answers" and wrap it in said class.
Each item on the list links to that section on the page. Here's a tutorial on how to do so.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!July 11, 2013 at 9:19 pm in reply to: Disabling responsive design, for phones, on an individual page #50320Dorian SpeedMemberI'm sure there are a few ways to do this. What I'd do, I think, is assign a body class to that page. Then, in the media queries (the part of style.css that makes the theme responsive), you could specify that for that body class, use the original settings. Are you familiar with body classes? This is a good overview.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberIt's a setting you'd choose for each individual author - on the person's profile, you can click "Show Author box below this person's posts."
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberWell, I think you should be able to do that - if you edit the home.php file to remove some of the widgets (not sure I am following when you refer to inner and outer widgets), you can then have the grid loop. I know I've used the grid loop on a site that had a widgeted area at the top. The client ended up ditching the slider on her homepage so we axed the widgeted area but at one point, it was working.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI haven't done it (although I've used the grid loop and have worked with that particular theme), but I would think it should work. This post by Bill Erickson (who wrote the plugin for the grid loop) is an excellent overview of how to implement it.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberDid you try disabling all of your plugins?
I've mentioned this issue on Twitter and hopefully another user can chime in with other suggestions. You should also try going through the StudioPress help desk.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet! -
AuthorPosts