Support » Theme: Astra » Function to Remove div.post-thumb (Featured Image) on CPT

  • Resolved KennyLL

    (@kennyll)


    Hi, we have a custom post type for team members. We weren’t originally using standard WP posts, but now need to and need to enable the Featured Image (post thumbnail).

    But this is adding the Featured Image to our custom post type as well. So we just need to know a function we could add that would exclude that from being produced on our custom post type single pages.

    Best-case scenario, we would remove:
    <div class=”entry-header”> and all child contents, which includes <div class=”post-thumb”>

    But we could live with just removing the .post-thumb div.

    We are currently hooking our output into ‘astra_entry_content_before’, but could also probably use ‘astra_entry_before’.

    THANKS!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.