If you have created a custom php template then add a specific class selector to your css within this template. As an example:
<body class="mycustomclass">all your page content</body>
or
<content class="mycustomclass">all your content content</content>
It doesn’t have to be on body or content or any other specific part of the page but make it encompass a the largest part of the content of that page.
Now in your child theme’s style.css add the customization that you want:
.mycustomclass {
color: blue
}
.mycustomclass h2 {
font-size: 3rem;
}
This is a general answer but hopefully puts you in the right direction.
Related Posts:
- Use template for posts with a particular category grandparent
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- Unable to render custom field after attempt to generate a list of recent post in page template
- Display articles with a different template in the home page | Solved |
- How to display last whole post on the homepage
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- how could I load a different template part by page
- How to show part of the_content?
- creating a second image attachment template?
- Mass update excerpt
- Unreadable pagination
- 200 Rewrite blog post links
- How to set a min number of words for a blog post
- How can I get a single php file that is the equivalent of an existing WordPress page?
- Loop through categories and display posts title under each dropdown
- Get post id in a function when edit/add a post
- how do I get a specific post from a post with a subcategory in WP
- Get and insert order email address to the PHP template inside HTML text
- Automatically create child pages and grandchild pages when saving a (parent) page
- Custom search results page not working with empty search
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- How to show single category archive
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Second transition_post_status hook fired instead of the first
- code is skipping a div
- Issues getting PHP to display in category pages
- How to store post ID’s in cookie or session to display the same posts later
- Which hook/action will help me solve my problem?
- How can I add extra word in permalink when someone click download button?
- Change title only in dynamic page
- Post + form + action + results on the same page
- Open post-content in archive page in a Modal box with bootstrap
- Secondary navigation menu on one page
- Enable custom logo upload if logo is not in header
- remove post that has no content
- Loading index.php contents which located outside blog folder for post single page
- get post content of particular post by url
- Post repeating with infinite scroll
- Custom posts in different columns style
- Get children post mime type using parent post_ID wp_post
- How to show only subcategories in parent category not parent category?
- How can I edit the content in index.php? [duplicate]
- 404 error when I acess the second page of post-type
- Woocommerce Show Single Product on Homepage
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- how to show only specific category for a template
- Show a different code on front page to other pages
- Does wordpress templates always in files or in database?
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Using same variable names in files added with get_template_part()
- Which PHP page is the Default Posts Page
- PHP include is only working in certain places in my custom WP theme
- Use WordPress function in php file
- Adding wrapper elements in the_date() like in the_title()?
- How to get all author posts outside of author templates
- retrieve post data and insert it in seperate static html page without WordPress
- Add filter multiple times using only one master function
- Create a Blog Template Page
- Showing latest post without 301 redirect
- WP Insert Post and then go to post
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Returning data instead of echoing/printing
- WordPress template page name displayed on screen
- Display related posts without a plugin
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- Counting Search results, and displaying the offset per page
- Count posts on multisite with blog id
- Function works everywhere, how to keep it to execute when creating a new post
- Making (and edit existing) posts with ID included
- Copy taxonomy terms from one post to another programmatically
- single.php with different look by category
- How to call multiple functions from multiple files into a WordPress page template [closed]
- Parsing Menu Items and Blog Posts
- Pagination on Custom Post
- $wpdb returns duplicate posts
- How to avoid duplicates when creating recent network posts
- How to show an entire post content and not also the excerpt?
- Get latest post from all categories except one
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Update post title from external file?
- Parse error: syntax error, unexpected end of file
- How do I define a lookup table that will work across all PHP elements of the template?
- persist a variable set in header.php all the way down to footer.php
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Removing WordPress Footer -without access to PHP code?
- How to set a template with wp_insert_post
- Automatically add images to a menu
- Load Posts on Click via Ajax into a DIV
- How to catch wordpress post ID when it’s published
- set post limit at load more ajax wordpress
- Why does the Woocommerce grouped template prints the unpublished products?
- Adding conditional text to a PHP Shortcode Template
- Create page template via functions.php?
- WordPress query undefined offset in loop
- Find Site ID From WP_Post
- WP_Query: getting posts where custom field exists
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- Array to string conversion on array_map
- Store metakey value as an array