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 does printf( __( ) ); work?
- Return HTML Template Page with PHP Function
- Is there a way to parse shortcodes in PHP?
- Display posts by month
- Custom SQL query to get List of posts with featured image url
- On this day PHP code
- get_the_content if it contains multiple lines it results in SyntaxError
- Looking to exclude blog posts from category Previous/Next buttons
- Automatic Excerpt Not Working
- Use Timber/Twig to pull an image by image ID [closed]
- Using a javascript file to access a get posts array
- WP Insert Post function – Insert Post Thumbnail
- How is WordPress manipulating the posts like there are folders?
- Blank space at beginning of tag?
- Link to file in plugin directory from wordpress template?
- Password protecting content in custom template
- How to properly insert a link to a template in WordPress?
- Trying to make php run in a post
- Remove posts after a given amount of time
- Render ninja form inside markup
- Unreadable pagination
- How can I get a single php file that is the equivalent of an existing WordPress page?
- how do I get a specific post from a post with a subcategory in WP
- 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
- Which hook/action will help me solve my problem?
- Open post-content in archive page in a Modal box with bootstrap
- Enable custom logo upload if logo is not in header
- Get children post mime type using parent post_ID wp_post
- How can I edit the content in index.php? [duplicate]
- Show a different code on front page to other pages
- PHP include is only working in certain places in my custom WP theme
- Adding wrapper elements in the_date() like in the_title()?
- How to get all author posts outside of author templates
- How to avoid duplicates when creating recent network posts
- Update post title from external file?
- Automatically add images to a menu
- set post limit at load more ajax wordpress
- Array to string conversion on array_map
- Store metakey value as an array
- How to render a block from php template
- How to use mysql LIKE with wpdb?
- Override Admin menu icon
- Do I need to edit my theme in order to change the title of my blog page?
- Incrementing PHP variable onclick to display posts by month
- Creating custom page template from existing PHP site
- Do not duplicate posts with multiple categories in multiple loops
- show recent posts php code error?
- Post to WordPress from another Server via PHP
- Template code to split a post and print a custom field?
- How to add new CSS file to new PHP file
- WordPress Search
- Update value of a associative array with update_post_meta
- Wrap posts p tags in div
- Edit and delete permissions pages and posts
- Generating 10 000 WordPress posts using PHP and avoiding Server Timeout error
- If Post Published Date or Modified Date is 1 Year or Older, Display Notice on Post Page
- Post form – AJAX won’t upload featured image – Plugin development
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- posts_per_page displays only 2 posts instead of 4 posts
- How to get post titles by post ID and integrate with my code?
- Infinite looping next post link within a certain category on a post
- WordPress recent post
- Polylang and template files
- Need to show 7 posts from actual date
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- How to use a PHP file to control the content of a blog post
- How to create dynamic templates?
- My blog posts section seems to be rendering the other blog posts inside the first? :/
- Change WooCommerce template for PDF – access to custom field
- LinkedIn Share Post Button
- Get the total Author Favorited posts
- How do I generate formatted permalinks as specified in backend options?
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- Using Tag Groups: Displaying groups and adjacent tags of current post
- Setting at job with shortcode not working
- Display 6 most recent post on homepage?
- Only Get A Certain Number of Posts From WP_Query
- How to call post title and post summary to other part of site?
- Insert wordpress tags below posts via functions.php
- Problems With Query and/or Template Part and/or PHP
- Add Custom Post Type on the Fly or create an array
- Odd page behaviour after removing sidebar
- WordPress article with 50 000 words loading slow – 100% cpu
- link to page_for_posts
- Display post of specific category on page
- How to create a loop that will display one post and stop?
- How to implement a custom sliding banner? [closed]
- $post->ID calls for current page, but what is the code to call for any new page created and published in WordPress?
- How to create a WordPress PAGE in another folder?
- How do I get a function to work in single.php
- How can one use variables in a template or template part without polluting the global scope?
- Count the number of matching post names in foreach loop