Forum Replies Created
-
AuthorPosts
-
staceyzavMember
I figured it out! for anyone else who may need it:
add_action('genesis_before','change_some_actions'); function change_some_actions() { if (is_category('7')) { remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'my_custom_loop' ); } } /** Code for custom loop */ function my_custom_loop() { echo 'custom loop here'; }
staceyzavMemberI"m having the same issue. Using the agentpress search filter doesn't filter anything. It just pulls up all results. What step are we missing? @jbash111 did you ever figure it out?
staceyzavMemberNever mind - figured it out:
Here is the new template:
<?php
/*
Template Name: Video Header
*//** Force the full width layout on the Portfolio page */
?>
<?php add_action( 'genesis_after_header', 'videosubhead' ); ?><?php genesis(); ?>
then added the videosubhead HTML and PHP to my functions file!
staceyzavMemberI just realized that I kept in a comment from the template I recycled, so /** Force the full width layout on the Portfolio page */ has nothing to do with what I'm trying to do here.
Thanks
staceyzavMemberActually, I think your second option is going to work better. Thanks!
staceyzavMemberThanks for your reply!
This looks like it is what I need, however it instructs me to add some php code to my archive template. Would I do this via a hook instead?
Thanks!
-
AuthorPosts