How To Reload A Theme During Development
Permalink
I'm just starting to develop a theme. I guess there must be some way to reload a theme completely as I iterate through the development process but I can't see it. Once you hit install theme it appears to embed itself into the installation. Page types I've tried out and thrown away stay on the 'add page' menu. Surely there must be a simple way to clear and reload a theme?
Use absolute paths while you are testing
example
#default.php
<?php
include( '/testing_directory/default.php' );
?>
don't use getThemePath() until you finished testing
example:
replace <link rel="stylesheet" href="<?php echo $this->getThemePath(); ?>/css/reset.css" />
with
<link rel="stylesheet" href="/testing_directory/css/reset.css" />
I didn't try this but i will right now :)
example
#default.php
<?php
include( '/testing_directory/default.php' );
?>
don't use getThemePath() until you finished testing
example:
replace <link rel="stylesheet" href="<?php echo $this->getThemePath(); ?>/css/reset.css" />
with
<link rel="stylesheet" href="/testing_directory/css/reset.css" />
I didn't try this but i will right now :)
Did you delete them at that location or did you try to remove them elsewhere?
Other changes in your theme itself only become active if you uninstall the theme and reinstall it for as far as I know. (unless someone found a way around that by now)