Are you wanting to replace the template file for the entire page or include a certain feature? As @JacobPeattie mentioned in the comments you may want to check out template hierarchy for replacing the whole template.
The get_template_part() function can be used to include a template part into another file. I think that’s your use case here. The problem appears to be where you are trying to add the template. I think you’ll want to add the following to page.php as that is the default template for pages. I find that the Query Monitor plugin has a useful feature of displaying which template is being used.
// add to page.php where you want your forms.
if ( is_page( 'faq' ) || is_page( 'FAQ' ) ) {
get_template_part( 'Servicedeneme' );
}
Related Posts:
- remove_action on after_setup_theme not working from child theme
- get_template_part vs action hooks in themes
- Issues with title-tag and document_title_parts
- Trying to use add_action and do_action with parameters
- Perform an action when post is updated/published
- add_action in a function, is it possible?
- Add action hook conditionally – only when home.php in use
- How can I tell if I’m on a login page? [duplicate]
- Overriding core functions in child theme
- Change meta tags programatically
- Convert hyphen to underscore in permalinks
- Change parent theme file function in child themes functions.php
- Reuse variable in hook callback
- Dequeue Scripts and Style for Mobile not working?
- Displaying Widgets
- Template tags vs get_template_part() vs functions.php
- How to update feed only 2-3 times a week (for Feedburner email)?
- Best Practice for Syncing Local Development With Staging Development [closed]
- Overwrite Parent Theme add_image_size in Child Theme
- Show excerpt for only first post in query
- How to add css class to image attached in all the posts?
- Passing arguments to my function with do_action and add_action is not working
- Is there a way to add a class to non current menu item?
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- How to use Internationalized human_time_diff() function in Chinese?
- Add caption functionality to custom WordPress theme
- Don’t delete a page if it holds users
- How do I add Bootstrap and LESS to my migrated WordPress site?
- Get_template_part inside a folder
- How can I get my Script to work on the Login page?
- Best practices regarding the creation of custom widgets?
- WordPress menu link doesn’t work properly
- Search filter by Post title OR Meta Title Value [duplicate]
- admin-ajax.php + load-scripts.php hanging for minutes
- Wait a result before enqueue
- Redirect to another page if the user is logged in when pressing again the login button on menu bar
- Unique sequential reservation code
- Multiple Loops Meta Data
- Functions.php Problem
- Replace function in a child theme
- Difference b/w Simple function call & do_action call
- jQuery does not work
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- Override the WordPress core function wp_referer_field
- Set Taxonomy based on post status
- Control the srcset much more (not all sizes in it each time)
- add_action template_redirect not working for home page
- Way to store featured image width and height in two separate variables?
- Insert template-part inside the content
- AMP – Change rel=”canonical” from functions.php [closed]
- Scripts not loading when using the wp_enqueue_scripts action
- Excerpt for pages not showing
- Some questions about how proper add 2 CSS file in a WordPress theme?
- current_user_can comma list vs OR (||) list
- Functions php shortcode for displaying main menu with no child items
- PHP 7.1 | Warning: A non-numeric value encountered in
- Add back in child theme what the parent theme removed with remove_action
- login_headertitle is deprecated since version 5.2.0
- 400 Bad Request – JavaScript App calling Custom wp-json endpoint
- I can’t add CSS with functions.php
- WP Customizer API loaded into functions.php
- call_user_func_array() expects parameter 1 to be a valid callback, function
- why can’t i add front.css to my frontpage.php
- Changing where my author box is printed
- Is this an acceptable practice for WordPress theme development?
- Use add_action within template
- Problem with custom function when I go back with the browser
- Rewrite Question Mark in Post Template with URL Parameter for clean URLs
- contact form in template with jquery,validate and ajax
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- How to use wp_enqueue_script properly?
- Load templates, pass arguments, and render output from functions.php
- Using get_terms for custom taxonomy in functions.php
- If has action not working as expected
- How do you insert code into the sidebar?
- How Do I Unhook This Parent Theme Function?
- Test CDN link from function.php or wp_enqueue_script/style?
- How to customize archive widget only for cpt?
- How to show only specific category post by user role without plugin and restrict all other cats
- Why does echo on functions.php not yield result in source code?
- use add_action in a shortcode (gravity form – WordPress)
- wp_footer hook causing text to show on bottom of page
- Add meta data in head from theme
- what is `get_section()` and how to use it?
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- Which method is more correct for removing WooCommerce Extensions menu item?
- Sending Messages Back to the Template After Processing?
- custom COOKIE on custom page
- wp_nav_walker that interacts with widgets to setup mega menu
- Settings in functions.php used by a plugin
- Allow tags and attributes in post and pages content
- Do something when user creates post (that’s pending)
- Why functions metaboxes is causing White Screen in Admin [closed]
- Getting error on function.php
- delete_term is not working properly with add_action()
- Setcookie not setting cookies anywhere except admin
- How to get variable from other function inside class function using add_action for Ajax call
- wp_update_post breaks my function
- is there a list of actions on WordPress
- Remove Actions/Filters added via Anonymous Functions