Forum Replies Created
-
AuthorPosts
-
jourdain
MemberAmazing! I will try this later. Also do you have any thoughts on making the second navigation sticky and full width, 100% of the browser?
Thanks again!
Jourdain
jourdain
MemberAMAZING!!!
Thanks for your help and patience buddy, it is working correctly now.
Jourdain
jourdain
MemberI added the code in like you said and it now looks like this
if ( is_category( 'tutorials' ) && is_active_sidebar('new-widget') && is_paged( '') ) {The only problem is that it has had the reverse affect. I would like the widget to only appear on page 1 and not subsequent pages. However, at the moment it does not appear on page 1, but does appear on pages 2, 3, 4, 5 ...
Is there a way to fix that?
Link to tutorials page: http://creativefreaks.co.uk/category/tutorials
jourdain
MemberI am stumped with this one, sorry for being a total newb but I cant figure it out.
her is the code.
genesis_register_sidebar( array( 'id' => 'new-widget', 'name' => __( 'Featured Tutorials', 'domain' ), 'description' => __( 'Add Content Here', 'domain' ), ) ); add_action( 'genesis_before_loop', 'your_widget' ); function your_widget() { if ( is_category( 'tutorials' ) && is_active_sidebar('new-widget') ) { if ( is_paged() ) { } genesis_widget_area( 'new-widget', array( 'before' => '<div class="home-top widget-area">', 'after' => '</div>', ) ); } }What else needs to be added to the code so the widget is only displayed on the 1 page of the archive.
Thanks in advance.
jourdain
MemberI am having trouble adding a conditional tag after the function.
I have tried adding the is_paged code in many ways using tutorials and WordPress codex you linked but each time I break break my site. So I am defiantly doing something wrong.
This is what the code currently looks like for your reference.
genesis_register_sidebar( array( 'id' => 'new-widget', 'name' => __( 'Featured Tutorials', 'domain' ), 'description' => __( 'Add Content Here', 'domain' ), ) ); add_action( 'genesis_before_loop', 'your_widget' ); function your_widget() { if ( is_category( 'tutorials' ) && is_active_sidebar('new-widget') ) { genesis_widget_area( 'new-widget', array( 'before' => '<div class="home-top widget-area">', 'after' => '</div>', ) ); }Link: http://creativefreaks.co.uk/category/tutorials
Secondly, the widget title styling did not transfer over. I was wondering if I need to add something to the code for that to be pulled? I can change it with css but I am just curious.
Jourdain
jourdain
MemberAgain thanks for your help, I have one other question about the formatting.
I would like to style the widget in the same way the home page is styled with the sidebar in line with the featured post widget. Is there anything I need to consider in order to achieve this?
Jourdain
jourdain
MemberI have worked out question number 2.
I have used ( is_category( 'tutorials' ) in order to display on a single category page. Then I will just hook a new widget in for each category page. Does this sound ok?
Jourdain
jourdain
MemberI can't believe I missed that header option in the settings! Thanks for that.
I have hooked a new widget are into the archive page ( http://creativefreaks.co.uk/category/inspiration ) but I have a few questions before I proceed.
1. Does the widget need to styled or should it take on the themes styling? I just want to make sure I have not made a mistake.
2. I was hoping to have a different featured post for each archive category, is this possible?
3. Can the widget be removed when the user clicks through to page 2 of the archive?
If you could point me the write direction and I will learn/teach myself.
Thanks again
Jourdain
jourdain
MemberI would personally add a border to the right hand side of the main navigation items. This would solve the cluttered navigation problem. See CSS below
#subnav li a { border-right: 1px solid #c2c2c2; }In addition I would reduce the amount of content on the home page to give a less cluttered feel.
Enjoy
-
AuthorPosts