Remove WordPress scripts

What Theme are you using? Your question is entirely Theme-dependent, so specific answers will requiring knowing what Theme you use. (Also, it would be helpful to know if any of your Plugins are injecting scripts.) The answer really depends on how those scripts and scripts are called. If they are called properly, they are registered … Read more

Gallery CSS Problem

You have to account for all appropriate CSS classes, based on the number of columns passed to the shortcode. Here’s my CSS (borrowed heavily from Michael Fields), for handling from 1 to 10 columns: .gallery { margin: 0px auto; text-align: center; width: 100%; min-width: 100%; } .gallery .gallery-item { float: left; margin: 0px auto; text-align: … Read more

Accessing Style Sheet Comment Like WordPress

Have a look in /wp-includes/functions.php at get_file_data(), this is the function that pulls the data out of style.css, called from the get_theme_data() function in /wp-includes/theme.php.

How can I make this custom menu work?

You need to target the appropriate theme_location. Assuming you’ve defined multiple nav menu locations using register_nav_menus() in functions.php: <?php register_nav_menus( array( ‘primary-menu’ => ‘Primary Menu’, ‘secondary-menu’ => ‘Secondary Menu’ ) ); ?> Then you call wp_nav_menu() using the appropriate theme_location as defined above, along with any other relevant arguments, e.g.: <?php wp_nav_menu( array( ‘theme_location’ => … Read more