Hi,
how can i replace the predefined patterns (dropdown) with my own for Background Overlay?
I’m using a child theme and i would like to use my own folder for background-images.
think, i need a function for my functions.php but i don’t know how to do it.
Help would be great.
Hey Mario,
This should be possible via css if you have the images loaded to a library. What exactly do you mean by pre-defined patterns though?
Best regards,
Jordan Shannon
Inside Enfold is a folder called Images. Inside of this folder is another one called background-images.
themes/enfold/images/background-images
I want to create in my child theme this folder to use my own patterns instead of the standards like ex. “ios-linen-dark.png.” I don’t want to have to change the folder after every Enfold update. I also don’t want to work with css, because the patterns should be selectable in the backend (Overlay) via the pull down menu.
With shortcodes its possible:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/shortcodes/');
return $paths;
}
I need something like this for the background-images folder
I have played around … but without luck. I don’t get it.
add_filter('overlay_pattern', 'avia_include_images', 10, 1);
function avia_include_images($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/images/background-images/');
return $paths;
}
i solved it. Please close this topic.
Hi docperi,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria