Change the name of the root name of an already built WordPress theme

You should never use <link> tags for stylesheets. Always use the proper API functions: Better practice Example: function wpse57423_register_stylesheets() { wp_enqueue_style( “themes_main_stylesheet’ get_stylesheet_directory_uri().”/style.css” array() // Use this array if you’ve deps that need to load before your stylesheet filemtime( get_stylesheet_directory().”/style.css” ) ); } function wpse57423_enqueue_stylesheets() { wp_enqueue_style( ‘themes_main_stylesheet’ ); } // Add to public page … Read more

How can I use get header from within my plugin?

I’ve created a rewrite do redirect like: /mylisting/909 ->/wp-content/themes/myplugin/edit.php?id=909 Which seems to make sense as I’m keeping the very specific logic to an individual plugin. There is a better way: Create an endpoint, use your code in a callback handler for the new URL. You get the whole theme environment for free here: get_header(), sidebars, … Read more

Can I use wordpress themes without wordpress?

/wp-content/themes/twenty-twelve/style.css will have a lot of the visual elements of the theme in it to get inspiration, however you must realise that each of the elements coded into the css is designed to go with each one of the div or other elements designed in wordpress… Back coding it will almost be harder than writing … Read more

How to use one theme for multiple WordPress sites?

Your best bet is setting up your own WordPress plugin server and deploying your theme to that — then install the plugin that interacts with that server on all of your sites and hey, presto! You’ve got yourself a custom theme which updates through the native interface! And you save yourself a whole lotta trouble … Read more