A Complete Guide to Customizing Avada Theme Features Using
Gorden Liu

Gorden Liu @gorden_liu_82ef393853e7bf

About: Flexible packaging made simple with Colorful Packaging. We offer expert design, advanced printing, and custom pouch making to meet all your business needs.

Joined:
Apr 21, 2025

A Complete Guide to Customizing Avada Theme Features Using

Publish Date: Apr 21
1 0

Avada is one of the most popular and powerful WordPress themes, known for its flexibility and design options. However, there are times when you may want to go beyond what the Fusion Builder or Theme Options offer. That’s where the functions.php file comes in. In this guide, we’ll show you how to use functions.php to add custom features and tailor Avada to your specific needs—without breaking your site.

What is the functions.php File?

The functions.php file is part of your WordPress theme and acts like a plugin. It allows you to add custom PHP code that extends the functionality of your theme. If you're using Avada, it’s highly recommended to create a child theme before making changes, so your edits won’t be lost during theme updates.

Getting Started with a Child Theme

Before editing functions.php, ensure you’re working in a child theme:

Create a child theme if you haven’t already.

Inside your child theme folder, locate or create a file named functions.php.

Add your custom code to this file.

This ensures your changes remain safe after Avada updates.

Common Customizations for Avada Using functions.php
1. Remove Avada Version Number from Source Code

function remove_avada_version() {
    return '';
}
add_filter('avada_get_theme_version', 'remove_avada_version');

Enter fullscreen mode Exit fullscreen mode

*2. Add Custom Image Sizes
*

function custom_image_sizes() {
    add_image_size('custom-thumb', 400, 300, true);
}
add_action('after_setup_theme', 'custom_image_sizes');

Enter fullscreen mode Exit fullscreen mode

3. Disable Avada’s Built-In Gallery Styles

add_filter('use_default_gallery_style', '__return_false');

Enter fullscreen mode Exit fullscreen mode

4. Customize the Excerpt Length

function custom_excerpt_length($length) {
    return 30; // Number of words
}
add_filter('excerpt_length', 'custom_excerpt_length');

Enter fullscreen mode Exit fullscreen mode

5. Add a Custom Widget Area

function custom_sidebar_widget() {
    register_sidebar(array(
        'name'          => 'Custom Sidebar',
        'id'            => 'custom_sidebar',
        'before_widget' => '<div class="custom-widget">',
        'after_widget'  => '</div>',
        'before_title'  => '<h4>',
        'after_title'   => '</h4>',
    ));
}
add_action('widgets_init', 'custom_sidebar_widget');

Enter fullscreen mode Exit fullscreen mode

This adds a new widget area that can be used in your page layout.

Best Practices When Using functions.php

Always back up your site before making changes.

Use a child theme to avoid losing custom code during updates.

If a function doesn't work, check for syntax errors—even a missing semicolon can break your site.

Consider using a custom plugin for extensive functionality changes to keep things organized.

Want to See a Real Example?

At Colorful Packaging, our website is built using the Avada theme and customized extensively through the functions.php file. From layout adjustments to performance tweaks, we've tailored the theme to perfectly reflect our brand’s identity and user experience goals. If you're looking for a clean, responsive, and highly customized WordPress site as an example—or if you need flexible packaging solutions for your business—feel free to explore our site for inspiration and services.

Comments 0 total

    Add comment