I’m creating a custom template for the archive of a specific post category, and want to specify content to display in the sidebar.
I found from where the sidebars are called using the function infinity_base_sidebars() in /engine/includes/sidebars.php.
But adding my own version of this file to my child theme doesn’t seem to overwrite the function. Is there a way to overwrite sidebars.php? Am I going about this the wrong way?
I think in this case it would be easier to create a new sidebar file. So do something like:
new-sidebar.phpin your Child Theme
infinity_get_sidebar();in the *posttype-archive.php* with
infinity_get_template_part( 'new-sidebar' );
Does this make sense?
Bowe, that does make sense, thank you.
We’ve got it working now.
You must be logged in to reply to this topic.