Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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 4 years, 7 months ago by docperi.
    #1211274

    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

    #1211287

    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

    #1211379

    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;
    }
    
    #1211846

    i solved it. Please close this topic.

    #1212109

    Hi docperi,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Replace predefined pattern’ is closed to new replies.