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
- Add 2 links in between the navigation using the Breadcrumb Navxt plugin hook
- Edit Yoast SEO breadcrumbs output [closed]
- Adding Shortcode to Text Widget
- How do I display only the latest post on my home page, while maintaining proper plugin hooks?
- Date calculations from 2 custom fields
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Custom random quote widget breaks when used in multiple sidebars
- Hooking in to replace the Sidebar/Widget areas
- How to get all of the activate_plugin action parameters?
- Using a function to change favorites listing
- Modifying the comments section through a plugin regardless of theme
- Display post lists in 2nd paragraph
- How to debug error message: Cannot modify header information
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- How to enable specific plugin only based around shop manager role?
- How to change constants in WordPress wp-config.php programmatically?
- Map a custom id to wordpress post id
- Restrict media upload size by format
- How to use a class from another plugin
- Override Plugin Script Fucnction in WordPress
- How to display custom sidebar in wordpress 5.5.2
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Trigger Elementor Popup via code [closed]
- wp_get_post_terms is difference obj model than the one in rest api response
- Show function to super admin
- creating html reusable blocks via shortcodes
- Adding a new field to the address field type in gravity forms
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Replacing a plugin function with a custom renamed function doesn’t work
- Get Time Taken By Each Action Hook in WordPress
- How to create an input field, and base the output on spreadsheet data? [closed]
- Facebook Messager Plugin
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Nested shortcode functions accessing variable
- Filtering WooCommerce Orders by Category
- Calling an attribute from a plugin shortcode
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- Best place for short bio,image and button [closed]
- How to call WordPress function other files
- All sites themes functions.php have been changed
- Customize permalink wordpress category id
- Conditional attributes and logic per product category
- Disqus deleted comments are syncing with wordpress but active comments do not
- Admin style for just one plugin in dashboard
- WP Query. Is there a maximum size?
- do_action() hook into load-(page)
- How to remove custom post type and add category and post name
- Howto check version of another plugin and then add a submenu page to it
- password_reset hook is not working
- The Hook registration_errors was not called
- Grab WordPress Salt Data From URL
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- WordPress get_avatar function not correct working
- Hook into existing tinyMCE button
- WordPress metaboxes – textfield suggestion automatically populated
- bbPress plugin: forum lists not showing in correct order? [closed]
- Which file of wordpress manage plugins functionalities?
- How to create an option page for this simple plugin
- Difference and examples of esc_attr__() and esc_attr_e()
- How to set Noindex to all wordpress pages in a catergory?
- How to get post ID with hooks publish_post, new_to_publish, etc
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- edit_user_profile and show_user_profile are not firing inside a class
- Template filter for custom taxonomy terms
- Improving the perfomance of a plugin action
- Display Custom Field Value on Admin Page Column
- List the authors that have written posts in a category
- Load Javascript from Plugin in One Page Only?