Avada Theme Body Scripts

User
/**
* Echo the scripts added to the "before " field in Theme Options.
* The 'space_body' setting is not sanitized.
* In order to be able to take advantage of this,
* a user would have to gain access to the database
* in which case this is the least on your worries.
*/
echo Avada()->settings->get( 'space_body' ); // WPCS: XSS ok.
where we found above in avada theme options
Assistant
The code you provided is from the **Avada** theme and is responsible for outputting any scripts or custom content added to the **"Before “"** section in the **Theme Options**.

### Where to Find This Option in Avada Theme:

1. **Go to WordPress Dashboard**
2. **Navigate to Avada โ†’ Theme Options**
3. **Click on Advanced โ†’ Code Fields**
4. Look for the option labeled **"Space before “"**
5. Any content added here will be stored in the Avada settings and retrieved using:

Avada()->settings->get( 'space_body' );

### Database Storage:
The value for `space_body` is stored in the WordPress options table, typically under:
– Table: `wp_options` (or your custom prefix `_options`)
– Option Name: `themefusion_options`

You can check this by running a SQL query:

SELECT option_value FROM wp_options WHERE option_name = 'themefusion_options';

This will return a serialized array where `space_body` is stored.

Let me know if you need more details! ๐Ÿš€

Leave a Comment

Your email address will not be published. Required fields are marked *