I can’t access mydomain.com/wp-admin/theme-editor.php

  • Unknown's avatar

    I’m trying to add code to have a different homepage for mobile sites,. To do this I need to access my themes fuctions.php. I can’t figure out how to get to it and when I manually type in the web address it says that site doesn’t exist.

    WP.com: Yes
    Correct account: Yes

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    That theme editor is a feature of the open source WordPress software, made by the community on WordPress.org. On WordPress.com we use a modified version of that software, and the theme editor is not available on free WordPress.com sites.

    Additionally, it’s not a good idea to edit any theme file directly in this way, as any edits you make directly to a theme file will be lost the next time the theme updates. To add custom code to functions.php, the recommended methods is to either use a plugin like Code Snippets, or else to create a child theme, and add your custom code to the child theme’s functions.php instead. That way your changes won’t be overwritten by future theme updates (and you don’t run the risk of bringing down your entire site because you forgot a semi-colon :D ).

    Using plugins or child themes on WordPress.com is possible on our Pro plan:

    https://wordpress.com/pricing/

  • The topic ‘I can’t access mydomain.com/wp-admin/theme-editor.php’ is closed to new replies.