Which is the simplest theme for WordPress to use it as your base?
asked a few times, this link has some good answers Opinions and recommendations on the best barebones base theme
asked a few times, this link has some good answers Opinions and recommendations on the best barebones base theme
You are using get_stylesheet_uri() which links directly to your stylesheet, then your adding /style.css which is resulting in an invalid url. So you need to remove the /style.css. Or use get_stylesheet_directory_uri() and leave the /style.css on there.
That’s because most probably your theme’s index.php is including somewhere the content of the template via a function (i.e. get_template_part()). Also, all your page’s contents are (and should be) stored in the database and displayed via queries; the contents are not (and they shouldn’t be) hard-coded in any file. Usually when you want to edit … Read more
Your question and answer comes down to template hierarchy and how it works, and it is really really useful to know the basics here. I’m not going to go into details as I will need to write a short story, but here are the basics: WordPress uses a very strict hierarchy for loading templates on … Read more
I’ve done for this myself using the plug-in theme switcher: http://wordpress.org/plugins/theme-switcher/ (yes, it hasn’t been edited in 2+ years). These theme stores a cookie in the browser indicating which theme the user has selected (themes are displayed as a drop-down / link list widget – and selecting a theme changes the cookie and redirects you … Read more
admin_url(‘post-new.php’); The admin_url function will handle generating most of the link, you just need to give it the final component. You can pass in GET parameters as well. Just look at the backend URL to see what you need. admin_url(‘post-new.php?post_type=page’); Or using add_query_arg as suggested by @Rarst … add_query_arg(array(‘post_type’=>’page’),admin_url(‘post-new.php’)); It is overkill for simple URLs … Read more
I’m not sure why are you trying to print out a PHP file’s path, because it’s not a good practice. But to get the equivalent function for themes, you can use: For parent themes : get_template_directory_uri(); For Child themes: get_stylesheet_uri(); Both are without trailing slash. Important Note Don’t ping a PHP file directly from your … Read more
I used this one a while ago and it worked. Hasn’t been updated in a while…but should still work. http://wordpress.org/extend/plugins/parallels-themes-switcher
It is very strange to me that you are using WordPress and want a “pure html+css+js page”. That sort-of defeats the purpose of using WordPress, and honestly building with PHP is so much more convenient and powerful that I never want pure HTML anymore. But here is how to do it… You could dig through … Read more
I think, you must also set the options template and stylesheet, thats all. I use this via filter to set a theme for testing or on a category, post-type and so on. But you must change the fields in table options for active the theme ready. I hope this help, i dont tested – only … Read more