ajax – XTRA Tutorials https://xtratheme.com/docs Documentation of XTRA WordPress Theme Sat, 09 Aug 2025 09:53:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.2 Collect Emails as WP Subscribers with AJAX https://xtratheme.com/docs/theme-options/collect-emails-as-wp-subscribers-with-ajax/ https://xtratheme.com/docs/theme-options/collect-emails-as-wp-subscribers-with-ajax/#respond Sat, 09 Aug 2025 09:22:21 +0000 https://xtratheme.com/docs/?p=4800

Name Field & AJAX Support for Subscribe Element

Step 1
XTRA

Collect subscriber names and emails via built-in AJAX. Submissions are stored as WordPress Subscriber accounts after email confirmation (double opt-in). Manage them in Users > All Users and connect to tools like MailPoet, Newsletter Plugin, or Mailchimp for WP.

1
Ajax subscribe
]]>
https://xtratheme.com/docs/theme-options/collect-emails-as-wp-subscribers-with-ajax/feed/ 0
How to Fix ‘AJAX Requested Name Is Empty’ Error? https://xtratheme.com/docs/how-to/how-to-fix-ajax-requested-name-is-empty-error/ https://xtratheme.com/docs/how-to/how-to-fix-ajax-requested-name-is-empty-error/#respond Tue, 08 Oct 2024 07:31:29 +0000 https://xtratheme.com/docs/?p=4567

Fix ‘AJAX Requested Name Is Empty’ Error

Step 1
Xtra

To fix the “AJAX requested name is empty, please try again” error, you should check your server settings to ensure the following configurations are properly set. These settings help improve performance and prevent potential issues with AJAX and request handling:

  • memory_limit 256M
    This sets the minimum memory allocation for the server to run scripts. Setting it to 128MB prevents memory exhaustion errors.
  • max_execution_time 60
    This defines the maximum amount of time a script is allowed to run before being terminated. Setting it to 60 seconds helps avoid timeout errors.
  • post_max_size 8M
    This limits the maximum size of POST data that can be sent to the server. Make sure it’s set to 8MB by default to avoid data transfer issues.
  • upload_max_filesize 8M
    This parameter controls the maximum file size that can be uploaded through requests. 8MB is generally sufficient for most upload operations.
  • allow_url_fopen ON
    This setting enables scripts to access files via external URLs. It’s important to have this turned ON for certain AJAX operations and external request handling.

To check and modify these settings, you need to edit your server’s php.ini file and ensure the above values are configured correctly. After making the changes, restart your server for them to take effect.

]]>
https://xtratheme.com/docs/how-to/how-to-fix-ajax-requested-name-is-empty-error/feed/ 0
How to Enable AJAX Mode for the Header Search Form: A Step-by-Step Guide? https://xtratheme.com/docs/how-to/how-to-enable-ajax-mode-for-the-header-search-form-a-step-by-step-guide/ https://xtratheme.com/docs/how-to/how-to-enable-ajax-mode-for-the-header-search-form-a-step-by-step-guide/#respond Mon, 26 Aug 2024 08:48:17 +0000 https://xtratheme.com/docs/?p=3649

Description and Screenshot

Step 1
XTRA

Enable AJAX mode for Search box in header

The activation of the search box is from the following path:
Theme Options > Header > Header > Search Element > Ajax search > Turn on.

Ajax
]]>
https://xtratheme.com/docs/how-to/how-to-enable-ajax-mode-for-the-header-search-form-a-step-by-step-guide/feed/ 0
Element: Login and Register https://xtratheme.com/docs/page-builder/element-login-and-register/ https://xtratheme.com/docs/page-builder/element-login-and-register/#respond Mon, 17 Jun 2024 08:18:05 +0000 https://xtratheme.com/docs/?p=1530

Video Tutorial

Description and Screenshot

Step 1

This element have three forms for Login, Register and Password recovery. All forms supports AJAX technology. Each part have separate StyleKits.

Login_register
  • Login form? – Display login form for users
  • Registration form? – Display registration form for users
  • Pass Recovery form? – Display password recovery form for users
  • Show form for admin? – For admin display all forms, For styling purpose
  • GDPR Confirmation – If you fill this field, Under form will display GDPR message checkbox
  • GDPR Error – If users do not check GDPR field and submit form, Ajax will show message
  • Translation – You can translate all inputs and forms
  • Container Styling – Overall container styling, Suitable for adding background with padding
  • Inputs Styling – Styling of inputs background, color, size, etc.
  • Button Styling – All buttons styling background, color, size, etc.
  • Button loader Styling – Button loader animation border color
  • Links Styling – Links color, size and typography
  • Messages Styling – Returning ajax messages color, size and typography
  • Title – You can insert HTML code or title above each forms
  • Title Styling – Title styling color, typography, size, etc.
  • Advanced tab – Responsive, Animation, Parallax, etc.
]]>
https://xtratheme.com/docs/page-builder/element-login-and-register/feed/ 0