Try using the jQuery Cookie plugin
You can set a cookie to start with that could be called InfoSubmitted with value of ‘No’ and when they submit their info it changes to ‘Yes’
To set the cookie first make sure jQuery and the Cookie plugin are installed and then use this:
jQuery.cookie('InfoSubmitted', 'No');
Once the user submits the form then change the cookie to Yes:
jQuery.cookie('InfoSubmitted', 'Yes');
Once you have that working then you would need to check what value the cookie has.
if (jQuery.cookie('InfoSubmitted') == "No") {
//do not show information
} else {
//show information
}
This is all using jQuery and Javascript. You could possibly use PHP to read the cookies set by the plugin and use them in your PHP code
Related Posts:
- How to set custom cookies in WordPress after a form is filled on a page
- How To Create A Paginated List Of All Categories On My Site?
- Password protected posts redirects
- Variable use in get_template_part
- Overriding page template using page_template filter
- Loading page content into a variable in template
- Capturing arbitrary semantic URL arguments
- How do I display the text inside the WP editor for a page with a custom template?
- Dynamically assign same page template to child page as parent
- What content should go in index.php?
- How to show a post single post in page template
- How to pass a numeric id to a page template?
- How can I dynamically load another page template to provide an alternate layout of the posts?
- get url page template
- Posts archive index pagination in a static page custom query
- How to Set a Custom Template for Blog Posts
- is_page_template & is_page in functions.php not working
- Theme’s page.php and index.php template files are confusing me
- How can I have a static title on my blog page?
- Use is_category(), is_tag(), … in functions.php
- How do I add a body class to specific pages?
- How to list all titles of posts on a specific page?
- How to handle a missing page.php?
- Customize edit.php Pages listing in dashboard to show only pages with a particular template applied?
- Programatically switch page template?
- remove page template from dropdown?
- Export csv and force download in template page
- WPML in custom page templates
- Why (and how?) is get_header() erasing all my stuff?
- get_pages — parent vs child_of?
- How to pass outside function to WP_REST_Request
- page.php not displaying content
- Creating a custom archive template that sorts post by date
- WP-CLI not setting page template with page_template=”template-name.php”
- Create a page template with No Footer
- Only show content if current page is NOT one of 2 page templates [closed]
- Register/Get sidebar?
- How to make text show up – new page template
- using the loop with a custom table
- Verify if the current page has at least one published child
- Content pulled from page template instead of editor
- how to remove all body classes in wordpress
- Custom Post Type Archive template page not found
- Add #sidebar-2 to a custom page template
- What is wrong with my page.php?
- wp_redirect goes to infinity loop
- Single page Template for pages that begin with ‘confirmation-‘
- What content to use for inserting images
- Display one post in different formats conditionally
- Want to exclude slider from page.php in header
- Can i forget about the post loop inside the page template?
- get_avatar() as backround image
- get_the_excerpt() inside WP_Query – link URL Incorrect
- Change text size and color for tags and category meta description on product page
- Strip from the_tags() output
- How to make Dynamic Page Template based on Post ID’s
- add_rewrite_rule no longer working – possible https issue?
- Template Tag Does Not Work in Page Template
- Contact template doesnt appear in page template options
- Does get_template_part() content gets parsed if it’s not executed?
- Get_template_part seems to be ignoring my template
- Custom page template to sidebar/widget
- Proper way to create custom static page
- How to display all child/sub pages from all parent pages?
- RSS feed for a custom page template
- Blog template with different header to rest of site
- Subpage is redirecting to spam site
- How to integrate custom HTML template in a premium wordpress theme?
- How to load page template according to the Searched Page
- Set page template automatically according to parent slug
- Static page won’t identify template
- Restrict Access to Logged-In Users Page Template
- page_template filter without a plugin
- Add additional templates to the templates drop down on add page menu [duplicate]
- Custom templates stopped working
- Single page theme: Can I render other pages with their respective themes within another page?
- How to set title from page-template?
- create template for one page
- How do you create a default template?
- Cannot display default template after switching to custom
- Custom Page Template not working when site moved from subfolder
- change the Theme dynamically
- WordPress & External Page: 404 error in IE and some others
- How can I set full width page layout in a default post page?
- E-Commerce Products Page Sidebar Formatting
- Recents posts pulling from different post type
- trying to add custom landing page to Twenty Eleven- can’t get rid of Twenty Eleven header/container? [duplicate]
- Template tag for /page/# structure
- Fetching Image from other post/page with custom type
- wordpress header leaks into body in a specific template
- Display child page on parent
- Utilizing the template hierarchy while storing page templates in a subdirectory
- Add a title to ACF form from frontend
- Show page name in browser
- How do I create a page template that doesn’t show URL, sidebar, nav menu, footer?
- Animation as shown in the link
- Custom page template not working on mobile
- How to show feature image, Title, Breadcrumb before Page in flatsome theme
- WordPress Page Slug with URL custom template
- Can wordpress search inside a custom page template?