Forum Replies Created
-
AuthorPosts
-
willbMember
Lauren I still cannot find the unclosed bracket or a comment that doesn't end, but it's working.
Thanks for your help.
willbMemberThanks for the reply Lauren-
so you're saying I should change the line
$books[] = 'custom-class';
to
$books[] = 'books';
That doesn't seem to change anything and still leaves me wondering why the exact same code would work in the dev environment, but not on the production site.
Do you have an explanation as to what I've done wrong? Trying to learn as well as fix my problem 🙂
willbMemberMatthew, I was looking for something else here in the forums and noticed that you don't have any replies.
Did you figure this out? I wasn't quite sure by the state of the link. I'd be glad to help if you're still having trouble.
Will
willbMemberMan I really think I had that code in the mockup site's style sheet.
Anyway, I now have this on modernmrsdarcy.com:
<code>
#header {
height: 260px;
overflow-y: visible;
margin: 0 auto;
width: 1080px;
background: #FFF;
position: relative;
z-index: 999;
}
#nav {
margin-top: -10px;
z-index: 1;
}
</code>And it works beautifully! I now realize that my header .png isn't transparent so I'll need to go back and do that and then change the margin to -15px or even -20px, but I know that it stacks properly.
Thanks so much John!
willbMemberCSS-Tricks didn't say that.
Do I need a z-index on the #nav/.menu-primary (I've tried both) at all? or if I set #header to 999 is that enough?
I ask because it's still not working. Here's what I've got:
<code>
#header {
position: relative;
z-index: 999;
min-height: 260px;
overflow-y: visible;
margin: 0 auto;
width: 1080px;
background: #FFF;
}.menu-primary {
background: #FFF;
margin-top: -10px;
}</code>
willbMemberAs far as a negative margin on the navigation that sounds like a good idea. But it moves the navigation up on top of the header not behind the it (which is what I need for the Y to be visible). I think I need that and the z-index.
So I looked up CSS-Tricks for the z-index. That is exactly it, but I cannot seem to target the proper div in the nav bar.
I've tried:
.menu-primary
#nav .wrap
#navAny idea how to position those?
willbMemberWe went another direction in this site, but the issue is still bugging me. I'd like to use the grid loop to have 4 featured posts and 4 excerpts on the home page.
I read the tutorial and copied the code into my home.php. Here's what I have:
<code>
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'child_grid_loop_helper' );
/** Add support for Genesis Grid Loop **/
function child_grid_loop_helper() {
if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 4,
'feature_image_size' => 0,
'feature_image_class' => 'alignleft post-image',
'feature_content_limit' => 0,
'grid_image_size' => 'grid-thumbnail',
'grid_image_class' => 'alignleft post-image',
'grid_content_limit' => 0,
'more' => __( '[Continue reading...]', 'genesis' ),
'posts_per_page' => 8,
) );
} else {
genesis_standard_loop();
}
}
/** Remove the post meta function for front page only **/
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
genesis();</code>
It seems like I need to register the grid loop in the functions.php, but nothing says that's necessary and I'm not sure how to do that.
Nick I did look at your post, but it didn't seem to address implementing the grid loop.
willbMemberDid you look at the link? I am not using the homepage widget structure.
I know this is a more general question and not theme specific. Nick asked me to post it here.
-
AuthorPosts