Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there! Can you share a link where we can see this? I have some ideas but a link always makes life easier.

    Thread Starter dskeefer67

    (@dskeefer67)

    Well, it looks like your staff posts are using the same template as your blog posts (pretty common). This is a result of how your theme treats different types of posts.

    You’ll want to create a custom template named single-staff-member.php for your single staff member pages (this would have the bonus of fixing the issue with the display of the staff bio on mobile, which right now is illegible) and place it in your site’s child theme (hopefully it has a child theme!).

    To build this template, you’ll need to reference the “templates” menu item in the plugin.

    If you’re not familiar with how to write a template, there are some great tutorials floating around, but I’d recommend starting with the “single.php” file, duplicating it, and editing it to your liking.

    Hope that helps!

    Thread Starter dskeefer67

    (@dskeefer67)

    There is already a template with that exact name. I thought that it was part of your plug in? Is that not the case?

    Yep, it’s already a part of our plugin. In this case, I suspect that starting with single.php might be better, but that is a matter of opinion. Regardless, you’ll want to put a file named single-staff-member.php into your child theme (if you put it in your parent theme, when you update that theme, the file may disappear). Doing so will override the original single-staff-member.php so that you can make customizations to it, like removing the sidebar.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide Sidebar’ is closed to new replies.