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
- Remove action from plugin on other plugin
- How to handel multiple checkbox field in the admin settings page with Settings API
- wp_insert_user – how to send verification email before logging in
- WordPress Hook that will run when media file deleted
- Disallow a user to post in certain categories
- Post source link plugin – small modification
- Adding a form at the end of the content
- How do you auto-activate plugins from child themes
- Use external link in the add sub menu
- How can I add a custom meta value on file upload?
- What is the function to get plugin base url in multisite?
- Code in theme functions.php faster than with a plugin?
- How can I filter blog name?
- Woocommerce Shipping module available only for type of products [closed]
- WordPress Plugin Boilerplate – add_action hook in static “activate” function
- Override the core function locate_template
- publish_post plugin hook doesn’t always pass $post->post_content
- Trying to count the total number of paragraphs inside a blog article
- add action for displaying posts using a shortcode
- May i Use ShortCode in Template?
- Randomize attachment IDs
- add_query_arg not working
- Change permalink structure hidden button edit
- Inserting HTML tag with ACF into shortcode
- WordPress filter that hook after each action/filter hook
- When to use action hooks and plugins
- How to Display a Plugin function (content) on frontpage using index.php
- Theme my Login plugin, how to update fields
- How to create an input field, and base the output on spreadsheet data? [closed]
- Customize permalink wordpress category id
- Admin style for just one plugin in dashboard
- Hook into existing tinyMCE button
- How to set Noindex to all wordpress pages in a catergory?
- How to get post ID with hooks publish_post, new_to_publish, etc
- Load Javascript from Plugin in One Page Only?
- the_post hook is not firing for me
- Add item to the woocommerce dashboard menu from a plugin
- wp_dequeue_script for a Plugin
- How do I add $_SESSION[”] to my wordpress page?
- Overriding an Array in a Plugin’s Class/Function from functions.php
- WordPress: Add custom add_filter for custom functions
- Change Header (Logo) Based on Login
- How can i list random author?
- Can you echo PHP code from a variable?
- Hook for plugin to insert into entry-meta
- Dynamic URL Rewrite for Custom
- how to validate input field in wordpress generated with wpform plugin
- Error using wordpress functions inside a plugin class
- Callback hooked to post_updated firing on new posts as well
- WordPress default post categories meta box widget
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- Make modification of add_to_cart button specific to single page
- how can export data in excel file custom plugin
- WP_CRON issue with UTC and local time
- Update User Meta Via Ajax
- Hook on widget context plugin to add custom context for widget
- Unexpected plugin_dir_path Output
- Admin page and admin menu. Permissions plugin
- how to repeat taxonomy in different places on wordpress
- how to create table during plugin installation in side a class
- How should I use a plugin function as a hook?
- Metabox Data not saving
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Including a PHP file via a function that is part of a plugin?
- overwrite a plugin function in functions.php
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Display Video as Post Thumbnail
- Notifications Bar on home page only
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?