if you got following in your functions.php
function add_split_test_forms()
{
if (is_page('Homepage')):
gravity_form(19, false, false, false, '', false);
endif;
}
you will at least need to run this function once: add a line add_split_test_forms()
in your functions.php
.
if your condition if (is_page('Homepage')):
is correct. (I prefer if ( is_front_page()):
should also work.)
Then your form should appear in the markup, like you said.
Related Posts:
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- Enqueue less file not working in child theme?
- Execute only on a certain page
- Adding tawk.to code just before body tag on functions.php file
- Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false
- Function to capture a value and store it in a variable
- Keyword checking in Gravity Forms
- jQuery code not working when included in functions.php
- Using data sent via AJAX in multiple functions on a WP plugin
- linking stylesheets and scripts with functions.php
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- Enqueing External JS on the remote server JS
- Enqueueing a code block from an options framework
- Dynamically populate parameter in Gravity Forms using PHP
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- How to change order inside foreach using wp_enqueue_script?
- Enqueue sripts and styles only if function is called
- Warning: filemtime(): stat failed for wp_
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- Modify previous and next text from pagination links
- How can I modify the permalink via a filter?
- wp_set_object_terms and arrays
- Shortcode putting html such as
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- How to check If Oembed is empty or not
- Can’t load WP function into external function
- Image as Sales Badge
- WSoD being caused by this piece of code
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- Show css depending on activity type in BuddyPress activity-loop [closed]
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Fatal error: Uncaught Error: Call to undefined function test()
- Return a numerical function value in Customizer controls
- Css loads very slow [closed]
- Show when user is online/offline in real time on user_profile.php
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Scrape external webpage for first image and add it to new post
- theme_root returning a truncated URI
- Call to undefined function get_userdata() in plugin
- Echo string and function?
- Log in / Log Out Custom Button
- how to test for all children (including multilevel grand-childern) of page
- Dilemma of Populating all the categories in a drop down list
- Add item to top of menu using a filter in functions.php
- Notify users only on post publish
- Limit Taxonomy Output in Conditional Statement
- wp_redirect only works on main site and not on other sites
- How to modify the default feed via a function
- require_once() if a product in woocommerce contains a tag [closed]
- Loop over Array and get the distinct ids
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- Shortcode for Listing Users from Meta Value?
- Display css ONLY on most recent post of specific category?
- How to remove the space before the ellipsis in excerpt?
- How can I use custom menus with a Bootstrap WordPress theme?
- Aspx/Rss feed – failed to open stream: Redirection limit reached
- Adding an Unlinked Space in a Custom Function
- How do I call an external php non WordPress class into functions.php?
- send popup after wp_redirect()
- How to remove/hide collapse menu for user/subscriber?
- How to implement __() function in my theme’s php file?
- Checkbox doesn’t save inside metabox
- A function to get the content of a page
- WP custom posts: filter results to custom taxonomy tag that corresponds to user meta field
- Get current user id in function php
- Proper way to remove html code on child theme
- Trying to add Custom Post Type to this functions.php command
- How can I prevent a shortcode div from extending beyond its boundaries?
- Updating user meta adds string count to value?
- Get custom field value from the function.php
- Non-blocking file_put_contents in function.php
- Display a custom name when the user has no name settle in his account
- Advance custom fields variable with if statement & Function
- Restrict wordpress access to logged users only
- Call a single function on two different methods with hooks
- Discount in the specific product title using keyword ( Woocoommerce )
- Modify post image in full size
- How to link all featured images to custom url in single.php for only non-logged-in users?
- How to get current post id in gform_field_validation gravity forms
- How best to check if a user is from China and hide content?
- Menu to the right of screen on desktop using Bootstrap 4
- Printing OEmbed URL based on Post selected w/o page refresh
- Automatically refresh page if widget is added to page?
- My query keeps looping infinitely ! how to stop it?
- How to create “page” used for generating PDF? [closed]
- Published custom posts missing
- PHP version or config prohibiting script from working properly
- static array on functions.php
- ajax form function error
- Display custom meta box in my template file
- wp_enqueue_style conflict when using in different action hooks
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- How to display the date under the post title?
- Simple Probléme in wordpress
- How to limit the number of posts in the wordpress loop in conjunction with the “download more” button?
- Need help with conditional logic for menus
- Custom Admin Menu Report for Specific User ID