-
AuthorPosts
-
May 8, 2020 at 7:49 pm #1211159
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.-
This topic was modified 5 years, 6 months ago by
docperi.
May 8, 2020 at 10:44 pm #1211274Hey 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 ShannonMay 8, 2020 at 11:05 pm #1211287Inside 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
May 9, 2020 at 12:44 pm #1211379I 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; }May 11, 2020 at 2:37 pm #1211846i solved it. Please close this topic.
May 12, 2020 at 12:03 pm #1212109Hi docperi,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
This topic was modified 5 years, 6 months ago by
-
AuthorPosts
- The topic ‘Replace predefined pattern’ is closed to new replies.
