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

XF 1.3 Disable all template modifications

Discussion in 'XenForo Questions and Support' started by tonnyz, Jan 19, 2015.

  1. tonnyz

    tonnyz Member

    Is there a simple way to disable all template modifications temporarily?

    I mean something akin to disabling add-on listener via config.php, but this one is for the template modifications (which lie on 'mysite/community/admin.php?template-modifications/') ?

    Thx :)
  2. Chris D

    Chris D XenForo Developer Staff Member

    To be honest, you might as well just go down the list and disable them one by one.

    There's no global switch because a lot of rebuilding needs to happen for the changes to take effect.

    There's a bit of a "hack" way of doing it.

    While you're on the list of Template Modifications, open up your Browser Dev Tools (usually F12) and go to the Console tab.

    You should be able to enter in some custom code. Paste this in and hit enter:
    $('.Toggler').attr('checked', false).closest('form').submit();
    tonnyz likes this.
  3. tonnyz

    tonnyz Member

    what a conjuring ! :D

    thx :)
  4. tonnyz

    tonnyz Member

    Sorry @Chris D , I just noticed that the checkboxes will be reverted as checked after refreshing the ACP page. Thus, I can't observe the effect on my site's page.

    Is it as expected ?
  5. Chris D

    Chris D XenForo Developer Staff Member

    No that line of code should submit the toggle process automatically.

    If it's not working for you though I probably would just recommend doing it manually.
  6. tonnyz

    tonnyz Member

    oh I see, might be browser issue then :D

    thx :)

Share This Page