1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

In A Custom Theme, Where Do I Place Images?

Discussion in 'XenForo Questions and Support' started by Xarcell, Nov 30, 2010.

  1. Xarcell

    Xarcell Well-Known Member

    So I been working on a custom theme. I created one called "Mind-Cloud". Silly name I know, but I just haven't got around to thinking of a better one.

    Anyways, I'm trying to understand where I place it's custom images, like the background and forum_unread images? If I place them in the default, it will over-write the default images.

    Do I need to create a folder called "Mind-Cloud" in styles and place them there?
  2. Kier

    Kier XenForo Developer Staff Member

    Your file path should be styles/{style name}/{add-on name}/, so if you are producing a custom style for XenForo itself and you call your style 'Mind-Cloud', you'd expect to find your images somewhere within styles/mind-cloud/xenforo/.

    That's the recommended way to do it, though you can use the style property editor to point @imagePath wherever you like effectively.
  3. Xarcell

    Xarcell Well-Known Member

    Ok, so just for the record, even though I created a new style through the admin of xenforo, it never auto-created a directory called "Mind-Cloud" in style directory. I don't know if that was intentional or not.

    Using Beta 3 upgrade from beta 2.

    I will manually create the Mind-Cloud directory under styles.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    That's correct, the directory is not automatically created.

    You also need to update the image path in Styles -> Style Properties -> General -> Settings -> Path to Images
  5. Xarcell

    Xarcell Well-Known Member

    alriighty. Thanks.

Share This Page