What it looks like…


While working on a WordPress project, one of the requirements was to keep an existing web application in ASP.NET which also meant that this would be on a Windows server. No big whoop, right? Here is something I learned…
The rewrite rules for WordPress in the web.config can interfere with calling the WebResource.axd and ScriptResource.axd. The problem is they show up as 404 errors when called via the ASP.NET app.
The fix was to modify the rewrite rules as follows…
|
1 2 3 4 5 6 7 8 |
<rule name="wordpress" patternSyntax="ECMAScript"> <match url=".*" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{URL}" negate="true" pattern="\.axd$" /> </conditions> <action type="Rewrite" url="index.php" /> |
The difference is changing the patternSyntax from WildCard to ECMAScript and adding the pattern for .axd.
When working with client websites (or your own), it important to make it easy to navigate content. In many cases, you will have a horizontal top (parent) level navigation menu and you might have drop down menus to drill down through child pages. This is helpful, but not easy to use, especially if your menu is several levels deep. In general, you should not rely only on drop down menus alone. It is bad UX design and frustrates users. So what can you do?

As noted in the example image above… You can have a sub-navigation element that displays dynamically based on the top (parent) level navigation that was selected!
Fortunately, there are a few plugins that will help you do just that. My current favorite is “BE Subpages Widget” by Bill Erickson.
Plugin: BE Subpages Widget by Bill Erickson
But don’t limit yourself, there are several out there…
Add the following snippet to your function.php file to load jQuery from a CDN.
|
1 2 3 4 5 6 7 8 9 |
function uw_load_scripts() { // De-register the built in jQuery wp_deregister_script('jquery'); // Register the CDN version wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', array(), null, false); // Load it in your theme wp_enqueue_script( 'jquery' ); } add_action( 'wp_enqueue_scripts', 'uw_load_scripts' ); |
Source: WordPress Codex