After some further trial and error I discovered the action hook the_post which seems to work in this situation. It updates the background color while still allowing the rest of the page/post content to display.
Related Posts:
- Customizing subject in comment notification e-mails
- WP showing “warning: call_user_func_array()”, What to do?
- Seeking clarification on page request life-cycle
- Fatal error: Class not found in
- Over write plugin templates
- How to find out what blocks are added by a plugin
- Placement of Code in Plugin for hooking `save_post`
- Pass info from functions.php to plugin
- Using a post-signup hook to get user details
- Calling plugin function inside custom plugin for onclick event
- get current date + 90 days and checking every day
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- Are there action hooks for comments?
- How to remove a class function from a plugin by using remove_action()?
- Add action to custom Function
- Hook for altering the content of all wp mails
- Build a must-use plugin that tracks when other plugins are activated or deactivated
- WordPress Custom Hook with Class method
- Unpublished Pages Failing To Appear On Custom Path
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- The function called on the wp head hook becomes null
- ACF Fields are not showing up on Homepage
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Plugin function in child theme
- Use action, filter, or hook to append HTML to WordPress plugin function
- plugin not hooking to my custom hook
- functions.php conditional output for a single plugin
- add query string to all pages after user logged in
- How to Add Extra Text In WordPress Title Before Post Publish
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Where do I put the code snippets I found here or somewhere else on the web?
- Hooking in to plugins
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- Generate dormant hook references
- How to only hook on Single.php after content?
- How to save the values of checkbox to the register setting?
- Define Function in functions.php or plugin and call in theme loop
- Autogenerate wordpress shortcodes using array?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- WooCommerce create new product and add to cart on form submit
- Shortcode under a Shortcode Multiple times Possible?
- Hide WordPress Plugin Deactivation Links
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- do_action and hook methods
- the_posts hook, which set of posts?
- Is it possible to add an action to the currently running action?
- OOP: Display warning and deactivate the plugin if PHP version is less than 5.4
- How to prevent action in ajax request, when in admin side?
- Using has_filter with a class based plugin to check whether the plugin is active or not
- Easy Digital Downloads (EDD) – Purchase Receipt emails couldn’t be logged
- ajax front-end increment views on click
- Display a text message if the field is not found and not if found
- Reposition Woocommerce Message
- Get all categories of custom post even not assigned
- Function to prevent users from trashing comments
- How does WordPress process plugin installations?
- Prevent a plugin from being automatically activated
- How get a value from a plugin into another plugin through action/filter
- Any hook for pre-plugin-update -either bulk or single plugin update
- wordpress plugin is not activating from widget
- Modifying the comments section through a plugin regardless of theme
- wp_get_post_terms is difference obj model than the one in rest api response
- Get Time Taken By Each Action Hook in WordPress
- Best place for short bio,image and button [closed]
- How to remove custom post type and add category and post name
- The Hook registration_errors was not called
- Template filter for custom taxonomy terms
- Can my hooked uninstall class function access a global var declared in main plugin file?
- How to translate wordpress error message
- strange shortcode error: does shortcodes requires any dependency?
- More gentle way to hook WordPress custom url
- Creating a plugin that will display text on every page
- Removing the custom_image_header from wp_head
- auto activate plugin when theme is active
- Custom Logo Link WordPress
- Where do I put the code snippets I found here or somewhere else on the web?
- How to convert Currency from USD to other IP Based currency in Php function
- the_posts_pagination() not working if I add wp_head() to header.php
- FPDF for creating pdf diplomas
- Search in WordPress
- Modify function output in a plugin
- How to make the first letter of a post title uppercase, in a plugin?
- Migrating custom php we wrote from functions.php into a site-specific plugin
- What is the correct entry point for capturing coverage data
- Publish check if the edited content has HTML “div”
- Code fails in plugin file but works in functions.php
- Conditional required fields for WordPress Contact Form 7
- Display_rows() and column_cb() strange behaviour
- WordPress plugin options need to delete after deactivate & uninstall
- WordPress function to add text
- Doing action based on input from options menu
- How wordpress plugin hooks works? [duplicate]
- Post curl function save twice using plugin hook function wordpress
- How to Allow Users to Select Recipients In a WordPress Comment section?
- How often should I execute add_filter and function declaration in Code Snippets?
- Product customizing quiz – quiz adding products to the cart
- How to change all the urls of the WordPress site?
- Re-use date format on different template
- Remove and strip html tag values