Header for post categories

Hi there, we’ve noticed that once we go from a certain post to a post category where we could find all of the other posts listed, the header stays. This problem only happens/is only visible on mobile, as we’ve created custom bottom headers for each post, where each post has their own register button.
We’re attaching screenshots to hopefully better illustrate our point:

What can we do to not have this show? Thank you in advance!

Looks like we might have solved it with this code:

function custom_header_assignment( $match ) {
  if ( is_category() ) {
      $match = 1234; // the post ID for your header
  }
  return $match;
}
add_filter( 'cs_match_header_assignment', 'custom_header_assignment' );

But if anyone has any other code or advice to weigh in with, we’re all ears!

Hi @INcroatia,

We’re glad that you’re able to find a solution to your problem.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.