Page template across themes

I believe you have to make a plugin for that. The following code is based on this answer: Is it possible to define a template for a custom post type within a plugin independent of the active theme? /* Plugin Name: Universal Template Plugin URI: https://wordpress.stackexchange.com/questions/57211 Description: Uses a custom template in the plugin directory … Read more

Sub folder CSS that’s read by Admin panel

Answered by @Vino here: https://stackoverflow.com/questions/12066316/sub-folder-css-template-headers-that-are-read-by-admin-panel/12139043#comment16259096_12139043 “File wp-includes/class-wp-theme.php, line 191, WP 3.4.1 source. but… there are no filters, and the class is final. You can edit at your peril, ’cause updates to WP will overwrite your efforts.”

Custom Nav Walker to show siblings and children of current branch?

Well, as much as I prefer to have my own walker and control over the nav, I found a plugin that does exactly what I want: Advanced Menu Widget http://wordpress.org/extend/plugins/advanced-menu-widget/ Only tested slightly but its working just as I expected, just have to select “Only strictly related sub-menu” in the menu widget config. I should … Read more

How to determine which registered sidebar area a custom widget is loaded into

The information you want is in the $args parameter. var_dump($args); // inside your widget method Look at the ‘name’ and ‘id’ array elements. Your code should look something like: function widget( $args, $instance ) { extract($args); $title = apply_filters( ‘widget_title’, empty($instance[‘title’]) ? ” : $instance[‘title’], $instance ); $text = apply_filters( ‘widget_text’, $instance[‘text’], $instance ); $hide_title … Read more

Am I not understanding plugins?

when faced something similar I found a solution that works if your framework resides inside a plugin (so it seems). If your main plugin file (one that is recognized by WordPress as the plugin file) is in, e.g. /plugin/Aisis/ you can put this path in a constant, eg. define(‘AISISPATH’, dirname(__FILE__)); require ( trailingslashit (AISISPATH) . … Read more