March 10, 201511 yr Does anybody here use 'Brackets' for developing WordPress sites locally? It has a pretty cool 'live preview' feature that works great for html sites, but causes a few issues with php/WordPress. I can get it to show the base url just fine, the problem is with live preview set, every time I open a new template file, it refreshes to that template in the live preview, rather than just showing the actual site. Any way around this?
March 23, 201511 yr Try, if( stristr( $_SERVER['SERVER_NAME'], "http://brkts.tst.8000" ) ) { define('WP_HOME','http://brkts.tst.8000'); define('WP_SITEURL','http://brkts.tst.8000'); } Obviously, change the http://brkts.tst.8000 to whatever.
Create an account or sign in to comment