Forum Replies Created
-
AuthorPosts
-
JoanMember
Ok, never mind. I found out that it ONLY works if you are using genesis_custom_loop. It doesn't modify the default loop.
So first I have to remove the main loop anyway
remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'genesis_custom_loop' );
Then I can use genesis_custom_loop_args π
JoanMemberHi Brad!
Yeah, that solution works. Thanks so much! But I don't want to remove the loop and create my own.
I just want to use the filter "genesis_custom_loop_args". It doesn't seem to be working at all, or maybe I'm missing something.
Any hints, anyone?
JoanMemberOk, great! Thanks Greg, I appreciate π
JoanMemberHi Greg!
Is always
genesis_meta
the recommended hook to usegenesis_pre_get_option_site_layout
?Thanks for your time!
JoanMemberOh, I didn't see that link! Thanks Kelly, thanks Ben!
And thanks everyone else with your help!! π
JoanMemberHi Susan!
Thanks! But I just want WooCommerce ready genesis child themes. I know the Genesis Connect for WooCommerce and thats okay, but I want themes with all the specific CSS for WooCommerce. π
Thanks again.
JoanMemberHi Kelly!
Thanks for your reply, I was aware of that threat. Nonetheless, I would like some WooCommerce ready themes, not the Genesis connect plugin π
Something like http://restored316designs.com/product/adorn-theme/, for instance. π
JoanMemberAnd even if you use, say, 5 template files, that’s still easier to debug than looking at the crazy amount of template files in Twenty Twelve.
lol, absolutely!
Keep in touch, David!
JoanMember@mmjaeger I think @braddalton means the Pro Plus Packaje
JoanMemberHola David!
Β‘Su ingles es mejor que mi espaΓ±ol! Y supongo que habla catalΓ‘.
Yeah, of course. Spanish and Catalan... and my Spanglish π
Thanks for your opinion, I really appreciate it! The more I dig into this, the more I realise there is no correct or wrong answer. I checked several Genesis Gurus, and each one of them has his own ways to get the job done. I guess the performance issues (if there are any of them) are so minimal that it's just a question of organization and personal preferences.
I'm guessing that I would rather prefer a clean functions.php... but maybe that's just because I come from non-Genesis-Ay-que-horror world. π
Thanks for your thoughts!!
Joan
JoanMemberHi Brad,
What about other template files, like category-id.php or archives.php? Do you recommend using conditionals on functions.php or use the template files? Is there any PHP performance issue in doing it like that? Or in the number of queries?
Let me put an example. Something easy, like remove the entry title on home if you are using an static page. I can use a conditional like that on functions.php:
add_action('get_header', 'child_remove_page_titles'); function child_remove_page_titles() { if ( is_front_page() ) remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); }
That action trigger my child_remove_page_titles() allways (on any single page and post). But the function will do nothing at all, unless it's on the frontpage (but there it is, an "useless" function on 99% of pages and posts).
The other option is create a front-page.php template file and put in it:
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
It seems cleaner to me, doesn't it? Moreover, I'm not calling my function on every single page and post. Does it make sense?
That's why I wonder if it's better do it like that. Again, it's my first genesis child theme and I don't know if it's better, I'm just checking I'm going it the best way.
Thks for all your opinions!!
PS: Oh, and sorry for my English, I'm from Barcelona, I'm doing my best!
JoanMemberHi David!
Thanks for your answer. The functions file sounds better, because everything it's in the same file, but some studiopress child themes use front-page.php or home.php. That's why I'm wondering if it's the best way. Also, Bill Erickson use this method.
Thanks for your point of view, I really appreciate it!
Joan!
JoanMemberHi Nick!
Ok, I get it! Better wait and have it right. π
Meanwhile I'll be using the Yoast breadcrumbs built in his WordPress SEO.
Thks!
-
AuthorPosts