Forum Replies Created
-
AuthorPosts
-
Dorian SpeedMemberThis reply has been marked as private.Dorian SpeedMemberThis reply has been marked as private.Dorian SpeedMember
The HTML is generated by the PHP of the framework and the theme. The CSS determines how the different div regions appear.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberJust checking, but for each element you change, you are REPLACING the code in the stylesheet, not ADDING it, right?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberYou know, thinking about this some more, I think it might be better to use a portfolio page layout and just use the Genesis Featured Widget Amplified to configure what's where on the page and how it's displayed. Well - wait, let's see, do you want the archives to also have a grid?
Wait - having looked at your link, it looks like you maybe have this figured out already, except for the custom fields?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberHi, Brian - sorry I missed this earlier. I would get rid of this:
// Register newsletter widget area genesis_register_sidebar( array( 'id' => 'newsletter', 'name' => __( 'Newsletter', 'custom-theme' ), 'description' => __( 'This is the newsletter section.', 'custom-theme' ), ) );
and try this:
genesis_register_sidebar( array( ‘id’ => ‘newsletter', ‘name’ => ‘Newsletter', ‘description’ => ‘This is the widgeted area after each post.’, ) );
although I think either should work.
Take a look at this post: How to Add a Widgeted Area (a.k.a., Sidebar)
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberThat is very strange. You did try deactivating your plugins, right?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberFirst up, always make a backup before fooling with functions.php. If you aren't sure how to get that error off your site, what you need to do is re-upload the functions.php file via FTP - the original version of the file. If you'd made other customizations to functions.php, you can download it (also via FTP), remove the code you just added, and re-upload it, and it should put your site back the way it was.
You are making the changes in the right place, as far as what file you're editing. Did you get everything from Brian's code on his site?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberDid you get your layout working the way you wanted?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberIt offers you more ways to customize the output of the widget. Basically, it's been so long since I used the regular version that I can't remember all the differences. The plugin was written by Nick Croft, who's a StudioPress developer, so it's very reliable.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberThere's a lengthy discussion on Bill's site about how to customize the grid loop - I encourage you to check it out.
Here's the code that's working for me re: customize length of excerpts. It may be that Bill further modifies this because I'm not sure I've got it quite right, so I would encourage you to follow along with that discussion on his blog.
/** * 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 = 60; } else { $length = 400; //print_r(get_post_class()); } echo '<p>' . wp_trim_words( get_the_content() , $length ) . '</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 );
If you're using three columns instead of two, you presumably need to change this line:
if( in_array( 'one-half teaser', get_post_class() ) ) {
to this:
if( in_array( 'one-third teaser', get_post_class() ) ) {
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberThis is possibly a dumb question, but: are you designating an image as the Featured Image, over there on the right side of the screen when you are composing a post/page? If you don't do that manually, I believe it just pulls the first image in the post, and it might not do that if you're using Show Page Content instead of the excerpt.
And - are you using the Genesis Featured Widget Amplified plugin? I always install that instead of using the default Genesis Featured Page widget.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI can help you with this code, but it might be easier if you use the Genesis Simple Edits plugin - it makes this all a bit simpler.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberOkay, let me see if I understand you correctly: you want to show, say, the three most recent posts in the category "Recently Added" underneath the comments section for each post? Is that right?
I would suggest adding an after-post widget, as explained in this post:
http://www.briangardner.com/email-newsletter-signup-box/If you want it to display after the comments instead of right after the post, try changing
add_action( 'genesis_after_post_content', 'custom_add_newsletter_box' );
to
add_action( 'genesis_after_comments', 'custom_add_newsletter_box' );
in the code Brian Gardner uses in his post.
Now, although he's using that area for an email newsletter signup, you could put any widget you wanted to into the "newsletter box" widget. You could install the Genesis Featured Widget Amplified plugin and use it to display three (or however many) posts from that "recently added" category.
To make them line up next to one another, you're going to want to target them in the CSS with percentages for the width. Something like #newsletter .featuredpost, if you're copying Brian's code.
Hoping this helps you get started.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberHi there - I've actually been figuring out this same thing, with quite a lot of help from Bill Erickson and Brandon Kraft. With regard to the excerpts being different lengths for features vs. teasers, that is. I've got it almost sorted out thanks to them, and I'll be posting about it in the comments on Bill's lengthy discussion of the grid loop. I'll come back and put the solution here, as well.
With regard to the styling and the articles being justified, I think it would be best for you to open up separate questions for those issues, since these are three different questions.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI'm not sure I understand your question. I think what you're asking is - can you set it up to show excerpts of each blog post, instead of the entire post, on your homepage?
In your Genesis Theme Settings, there's a box for "show content" or "show excerpt." Switch that to show the excerpt. Or you can tell it "show content" and limit the content to a certain number of characters.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberGreat! You can mark this topic as "resolved" if that answered your question.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberSo - forgive me if I am missing something. Why are you adding any code to your functions.php at all? The secondary menu should be below the header by default.
I can't imagine this would be a plugin issue, but just in case - did you try deactivating your plugins to see if that resolved the problem?
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberI bow to your forum-osity, Susan, but on this one - I agree with Kraft. I always went to studiopress.com/support before (and now) and it seems confusing for new people, too, that /forum goes one place and /forumS goes another.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet!Dorian SpeedMemberWhen you say "between posts," do you mean that you want it to be at the bottom of each individual post?
If so, you can try adding this to your functions.php:
/** Add the after post section */ add_action( 'genesis_after_post_content', 'prose_after_post' ); function prose_after_post() { if ( ! is_singular( 'post' ) ) return; genesis_widget_area( 'after-post', array( 'before' => '<div class="after-post widget-area">', ) ); }
Then, make sure you create the "after-post" widgeted area by adding this to your functions.php:
genesis_register_sidebar( array( 'id' => 'after-post', 'name' => __( 'After Post', 'prose' ), 'description' => __( 'This is the after post section.', 'prose' ), ) );
You can then style the appearance of the widgeted area by targeting .after-post in your style.css file.
Bringing websites Up to Speed
Firebug will light the way to understanding the secrets of the Internet! -
AuthorPosts