180 posts
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 4 years
+2 more
ThemePrince says

I just had a problem with a client who had a lot of plugins installed and when my theme was activated, only a white screen appeared both in admin and frontend. I figured out that one of the plugins had the same function name what I used in the theme.

So…

Tip #1: always create your PHP functions with an own prefix like this:

function my_custom_dashboard_themeprince(){ ... }

Tip #2: For debugging errors like this in WP, add the following lines to wp-config.php:

define(‘WP_DEBUG’, true); @ini_set(‘display_errors’,’On’);

Deactivate all plugins, activate the theme and start activating plugins 1-by-1 untill the error appears.

by
by
by
by
by
by