• Hi,
    the preview of the image editor/crop doesn’t works with my theme.
    So I try a different theme and it works.

    The problem is with functions.php on theme folder that has errors on admin area.

    How can I remove the functions.php inclusion only on wp-admin folder and let it on public website?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can’t. functions.php is loaded automatically as it is often needed in the admin area. You need to find out what in functions.php is causing the problem & why?

    Thread Starter osterello

    (@osterello)

    I can’t edit the wp-settings here

    if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
    		include( TEMPLATEPATH . '/functions.php' );

    and make a condition if the folder is wp-admin?

    No. functions.php is needed in the admin area.

    Thread Starter osterello

    (@osterello)

    if I remove functions.php on theme folder, admin works great, but public website not.
    no way?

    Because the theme needs that file to work effectively.

    Thread Starter osterello

    (@osterello)

    Thankyou Esmi, but I assure you that my theme doesn’t need the /wp-content/themes/mytheme/functions.php file in the /wp-admin area to works.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘remove functions.php on my theme in wp-admin’ is closed to new replies.