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

XF 1.4 Changing a Style's parent?

Discussion in 'Styling and Customization Questions' started by adwolf1, Nov 5, 2014.

  1. adwolf1

    adwolf1 Active Member

    is it possible to change a style's parent? I have a style that is the child of one style, but i'd like to test it as a child of ANOTHER style.

    Even if there is no UI, would it work if I just changed the parent_id style in the DB? Or is that courting disaster?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Click on the style name and change the parent.

  3. adwolf1

    adwolf1 Active Member

    great, thanks!

    Just to be totally clear, what happens if I import a stand-alone style, then make it a child of an existing style? will inheritance from the parent will work OK (that is, how does it decide what to inherit from the parent in that case?)
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Child styles inherit from the parent if the child templates themselves aren't edited.
    maszd likes this.
  5. adwolf1

    adwolf1 Active Member

    So if I import a stand-alone style that has a bunch of unedited templates, then I decide to make the style a child of another style, all of those untouched templates will be overridden by the new parent? cool! (just curious, how does it keep track of whether or not a template is in a default state? I don't see any fields like "is_edited" or something similar in the DB in the xf_template table)

Share This Page