Maybe the simplest way is to put your code in a function and call it on that specific page.
if (! function_exists('my_schema_code')) {
function my_schema_code(){
/* schema code... */
}
}
if that page doesnt have a custom file, create one, for example a template or a page. just like Rup said.
Related Posts:
- get_template_directory_uri pointing to parent theme not child theme
- How to customize the_archive_title()?
- How to override parent functions in child themes?
- remove_action on after_setup_theme not working from child theme
- Upload Multiple Files With media_handle_upload
- Adding a second email address to a completed order in WooCommerce [closed]
- Child theme – Overriding ‘require_once’ in functions.php
- Include files in child theme functions file
- What is this code in my theme’s functions.php? if (isset($_REQUEST[‘action’]) && isset($_REQUEST[‘password’])
- Redeclare a function in a child theme
- How to override a function when isn’t at functions.php
- Child theme functions.php do I use php open and close tags?
- Declaring an instance of class included in parent theme from child theme functions.php
- One Child Functions.php for Multiple Child Themes
- Removing custom background and header feature in child theme
- How to override function in functions.php of parent theme?
- Implementing DNS Prefetching with WordPress
- override parent theme configuration in child functions.php
- Child theme – overriding add_image_size by a child theme [duplicate]
- syntax for remove_filter in parent theme with class
- Is it possible to override this function/class in a child theme?
- How to override functions.php in child theme?
- Overriding core functions in child theme
- Override parent theme function that is not hooked or in the functions.php file
- Function in Child Theme not overriding Parent Theme function [duplicate]
- Copyright info change in Theme Child PHP
- Change parent theme file function in child themes functions.php
- VERY new to coding – keep breaking site trying to add to functions.php
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- Problem with tag
- Reuse variable in hook callback
- write in functions.php
- Add footer.php to WordPress child theme
- Child theme – copied some files from parent to child website still uses parent files
- How to override filter in child theme?
- I created a child theme and it doesn’t work for some of the css files
- add sidebar area to header of child theme
- Unregister Nav Menu with fallback?
- Child Theme Not Overriding Parent Theme
- Pinterest Integration Using functions.php
- Changes to functions.php not working
- Overriding methods in a child theme
- How to override enqueued styles using a child theme
- Should I ask a theme developer to use locate_template rather than require_once
- Date/time limitation of posts where function must be executed
- Add Javascript code to functions.php childtheme
- How Do I Unhook This Parent Theme Function?
- Widget is displayed in two places
- How set a while with a function
- How to add javascript code into Divi child theme?
- Child theme, how to cut the functions.php file into several classes?
- Replace theme function
- Setting Up Child Theme To Take Priority
- How do I create a child theme from PowerMag theme
- Change default color scheme in twentyfifteen child theme?
- Create New User Custom Field not Saving
- How would I correctly implement a new if statement in a child functions file?
- Drop down list code for sidebar
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Child Theme not loading multiple stylesheets
- Including admin-options.php file in Child Themes
- Modified functions.php in Magazine Pro theme of Genesis. 500 error
- Help with is_page() and calling css for specific pages in a Child Theme
- Some code is added automatically to my site’s header – what is it?
- How to include a hyperlink in the body text of a custom password protected form?
- uninstall a theme programmaticlly
- How do I integrate my Child Theme into a Custom Template?
- Getting back a blank WordPress site following functions code edit
- Adding a meta box fields to child theme options page
- Child Theme functions.php has no effect
- Update add_image_size
- Load a Child Theme’s style.css just before the closing tag
- Is it possible to change parameters of Parent theme function in the Child theme?
- Preventing PHP Execution in Parent Theme
- Blank child theme – functions.php problem
- Why does my visual post editor break when I try to add a TinyMCE button?
- Functions.php in child theme that loads CSS file breaks website
- unregister_sidebar in child theme not working
- Unregistering custom tinymce plugin?
- Override parent theme function that is not hooked or in the functions.php file
- How to get tags and categories?
- How to add a class name to the ancestor of a post?
- Syntax for a function in order to get post’s title in JSON encoded response [closed]
- Why wp_ajax hooks doesn’t work?
- Problem with Child-Theme using of foundation-framework [closed]
- Code in functions.php appearing on front-end and dashboard [closed]
- Child Theme not working – CSS gone
- I want to add the alt attribute to all the photos!
- Why functions metaboxes is causing White Screen in Admin [closed]
- How do I make my child theme’s CSS update when I save it?
- How can I json_encode the output of my function?
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- Bad value crossorigin for attribute crossorigin on element link
- Text before price on WooCom
- Convert Image to Webp on upload without plugin
- post_row_actions filter from parent theme not executing in child theme
- How to get variable from other function inside class function using add_action for Ajax call
- Proper way to load styles using a child theme
- Child theme’s functions.php not being read (child theme’s autoload.php not being run)
- Add custom css to specific user