WordPress multisite with same content

This would take a little bit of work, but you could adapt code from this plugin: http://www.mihaivalentin.com/different-wordpress-theme-depending-of-the-current-user/ First you would point all the domains to the same site. This plugin changes the current theme depending on the user logged in. But you could change the logic to change the theme depending on the referrer address. … Read more

What data does WordPress theme update pull If there is an update?

Very typical and very annoying situation unfortunately. WordPress doesn’t “pull” update information. Instead it submits plugin and theme information to the API at wordpress.org, which responds with updates available. In practice matching of updates is loose and exact logic is not disclosed. Name matters a lot, folder name as well. Rest matters to some unknown … Read more

Widgets not showing on sidebars

You’ve registered your sidebars with the ids of sidebar-left and sidebar-right but you are are attempting to display them using only left and right. You need to use the correct ids. That is: dynamic_sidebar( ‘sidebar-left’ ); You need that id with both dynamic_sidebar() and is_active_sidebar() if ( is_active_sidebar( ‘sidebar-left’ ) ) { dynamic_sidebar( ‘sidebar-left’ ); … Read more

Detect plugin/theme installation (via upload)

I think your best bet here is to hook into the flow at the time of uploading and processing the uploaded file. There is a filter (line 327, file.php): apply_filters( ‘wp_handle_upload’, array( ‘file’ => $new_file, ‘url’ => $url, ‘type’ => $type ), ‘upload’ ); You could create a filter within which you do nothing else … Read more

Blocking Plugin Css to load custom in template directory

You can dequeue a style, for do that you can use wp_dequeue_style() or wp_deregister_style() To use both of them, first u need to find the handler of the style you want. Go to the plugin’s folder you wanna remove the css and search for wp_enqueue_style or the file name and locate the handler. wp_enqueue_style( ‘my-plugin-font-awesome’, … Read more

Extending a theme: build new features as plugin or core modules?

If you’re going to want to mix-and-match these modules, I would suggest developing them as plugins or using a plugin such as Code Snippets to separate your modules, making them easier to work on, expand upon, and deactivate/activate. Either way, separating your modules from your theme will make customizing deployments faster while increasing the organization … Read more

Theme modification for custom category menus

As indicated above, I discovered the answer to my own question. You do not need single quotes or brackets around the variable. The fact that the variable is a string itself is sufficient. The correct code is below: <?php $cat = get_the_category(); $catSlug = $cat[0]->slug; $catMenu = $catSlug . “-nav-menu”; $options = array( ‘container’=>’nav’, ‘container_class’=>’menu-header’, … Read more