If your theme is using the body_class();
function then you can target pages via CSS.
If you have parent page with the ID of 2 and the background you wanted to change was the .content div, you would simply use :
.parent-pageid-2 .content {
background: green;
}
Or something similar to that effect. This would work for as many child pages you have.
Related Posts:
- How to create .pot files with POedit?
- How do I get the theme URL in PHP?
- What is the difference between wp_register_sidebar_widget and register_widget?
- How to enqueue script if widget is displayed on page?
- Custom Image section in Customizer
- Form Submitting Error with get_template_part()
- Get 10 posts from a WP_Query. If less than 10, get the remainder from elsewhere
- get_stylesheet_directory() returns wrong URI… localhost/using vhosts
- Any alternate TinyMCE4 themes / subthemes?
- How Do I Programmatically Force Custom Permalinks with My Theme?
- wp_get_attachment_image_attributes not working for me
- Best practice (forward compatibility) for theme options
- How to use Plupload in themes
- add_editor_style not working
- Returning Variables back into a template
- How to handle thumbnails
- WordPress Google Maps in Custom Theme
- How to add custom template tag in wordpress theme?
- Doubled titles when using All in One SEO with custom template
- In theme development, are there functions which write HTML in a standard fashion to reduce “spaghetti code”?
- Checking if there is an Image inserted – if not don’t display anything
- How can I include a post in a theme?
- Retrieve data using wpdb to use for customizer controls
- Modify the Additional CSS section (adding a disclaimer)
- Creating directory and file using native wordpress file system
- Don’t understand why theming is so strange and twisted [closed]
- Create self-populating menu and add extra divs to the menu layout
- How to write .htaccess dynamically? [closed]
- I want edit_post_link() to open in a new window/tab (target=”_blank”)
- wp_get_attachment_image_src() width and height boolean
- How to store functions in… functions.php?
- Is there a need for nonce with Post Metabox?
- Simple way to get two language WP site
- get_page_template returning nothing
- How can i initialize a widgetized sidebar (with widgets)
- How do you force a sidebar widget to have a container div around all child widgets?
- Add widgets to available widgets section without changing the theme?
- Override template file i subfolders
- Theme Development for WordPress Multisite Installation
- Does the switch_theme action run when you’re upgrading a theme?
- How to obtain the html stripped version of $category->description?
- How to make animated intro?
- Replace custom logo with text
- WordPress Website Browser Compatibility issue with IE [closed]
- create category on theme setup
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- How to jump to newly posted comment anchor after submit?
- WordPress get_template_part() function not working
- Recommended method for updating/adding menus when adding new theme
- How to add custom meta box under Gallery Settings in the “Edit Gallery” popup
- Is it possible to make *.js and folders visible in theme-editor
- How to use add_theme_support(‘html5’)?
- Best way to develop a new theme on a live site, with new content? [closed]
- Tag Page Not Listing All Posts With Tag
- How do I make the most minimal vanilla theme possible with nothing but raw content?
- Can I Set Up Session in WordPress Custom Page
- How to list articles by year based on url?
- Pagination not working on page template
- How can I prevent posts with no title showing up in my query?
- How to make theme configurable
- Wordpres core-update theme renames theme folder name
- I’m using wp residence theme and want to display titile above the slider [closed]
- Issue when posting updates/changes to wordress
- Shortcode IF statment help
- Theme customizer – can’t add section/settings
- WordPress Load Only Page Text
- Bootstrap grid system is not working in my WordPress theme
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- How to hide custom sidebar on mobile
- Tiny MCE custom styles, and preview in the backend
- Custom nav menu not showing
- How to get the theme index.php listed in appearance editor
- How can I get dynamic content on my static home page
- Creating an option for writing a post without an author attribution for a group blog on WordPress
- Is there any way to store single.php wordpress file into a php variable
- Woocommerce AJAX filters option loading spiner – problem on mobile device
- How to Modify WP_Includes/blocks/latest_posts.php
- Page For Specific Posts
- How can I show a custom WordPress menu anywhere I want on my website?
- Menu is in Reversed order
- How to connect two child themes on different sub domains to the same base theme
- Group several custom global page templates in sub-folder
- Should I detect the device or the page first?
- How does mediaelement.js work in WordPress?
- Get chronological page order
- Query wp_postmeta into an array based on post_id
- Theme not uploading showing maximum upload size on live site
- WordPress Theme Developments – Start from another theme
- Access meta box checked value in another file
- Best way to access variables in template markup
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- Problem with multiple menus in theme
- How to convert that page to a wordpress template? [closed]
- JQuery Equal Height in Rows Conflicts Only Works without Registering wp_footer();
- Saving Permalinks Results in 403 MAMP (Windows)
- Add rel to all images in a post
- WordPress theme Modifications not showing up on live server
- Incorrect sidebar showing on WooCommerce Store page [closed]
- How to Create a Multi Purpose Theme?
- customize functionality of share buttons under each blog post [closed]