remove_action() not working in page template – Genesis

I’ve had a good look around but can’t find anyone with the same specific problem.

In functions.php I’m adding the following actions:

add_action( ‘genesis_entry_header’, ‘twl_content_wrap_start’, 15 );
function twl_content_wrap_start() {
echo ‘<div class=”container”>’;
}

add_action( ‘genesis_entry_footer’, ‘twl_content_wrap_end’, 15 );
function twl_content_wrap_end() {
echo ‘</div>’;
}

Then in my Page Template page_full-width.php, I’m trying to remove these actions.

remove_action( ‘genesis_entry_header’, ‘twl_content_wrap_start’, 15 );
remove_action( ‘genesis_entry_footer’, ‘twl_content_wrap_end’, 15 );

But it’s not working!

Any Ideas?

Thanks

Read more here:: remove_action() not working in page template – Genesis

Leave a Reply

Your email address will not be published. Required fields are marked *