Your Cart

Init failed: Galleria could not find the element “.photo-galleria”.

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Problems Init failed: Galleria could not find the element “.photo-galleria”.

  • gravatar
    Brad Young
    July 17, 2013 at 7:37 pm

    Hi,

    I keep getting the “Init failed: Galleria could not find the
    element “.photo-galleria”. error message on my site and I cannot
    find out what is causing it and how to fix it. Please help.
    Thanks!


    gravatar
    Virtual Strider
    July 24, 2013 at 10:23 am

    I have the same warning message Init failed: Galleria could not
    find the element “.photo-galleria”.

    It seems a bit weird as my galleries work perfectly. However,
    I’ve noticed I get the above warning only on my Home page


    gravatar
    Virtual Strider
    July 24, 2013 at 10:36 am

    just want to add quickly that I’m using Deep Focus by Elegant
    Themes and the warning Init failed: Galleria could not find the
    element “.photo-galleria” goes away if I disable the Slider feature
    on the Homepage.

    Any help would be greatly appreciated.


    gravatar
    Craig
    July 30, 2013 at 5:22 pm

    I am experiencing the same error message. I am, as well, using
    an Elegant Themes theme, mine is “Vertex”.

    Thanks,

    -Craig


    gravatar
    November Garcia
    August 4, 2013 at 5:43 pm

    I am having the same problem. Why has this not been
    addressed?


    gravatar
    Richard Witherspoon
    November 4, 2013 at 9:45 pm

    Looks like no one has responded to this error. The error occurs
    when there is not a galleria div element on the page. You need to
    ensure the script is able to find the appropriately named element
    to apply itself to.

    Also, I have found sticking the run command at the bottom of the
    page is best so you can ensure the element has been loaded before
    trying to apply the script settings to it.

    For example:
    If you are running galleria with this command:
    Galleria.run(‘.galleria’);
    The script is going to look for a DIV with the class galleria.

    If you are running galleria with this command:
    Galleria.run(‘#galleria’);
    The script is going to look for a DIV with the ID galleria.


    gravatar
    Simon Tunnard
    March 6, 2015 at 9:44 am

    Hi,

    I had the error and added:

    Into the header and the error went away.

    Thanks for the tip.


Galleria uses cookies to provide necessary site functionality. By using our website, you agree to our Privacy Policy. I understand