wordpress in wamp lan doesn’t load css

I use wordpress in a lan with wamp. I can correctly see the lan from client pcs. It works perfectly with non wordpress websites so i don’t think it’s a lan setting problem. Is there any particular setting i should set in wordpress? Actually, it loads correctly, but without JS and CSS.

UPDATE, here’s how CSS and JS are loaded in the plugin:

Read More
function agenda_my_scripts() {
if ( !is_admin() ) {
    // datepicker
    wp_enqueue_script( 'custom-datepicker', plugins_url( 'sys/js/datepicker.js', dirname(__FILE__) ), array('jquery') );
    wp_enqueue_script('jquery-ui-datepicker');
    // CSS
    wp_register_style( 'agenda_css', plugins_url( 'sys/css/style.css', dirname(__FILE__) ) );
    wp_enqueue_style( 'agenda_css' );
    // jQuery CSS
    wp_register_style( 'jquery_ui_css', plugins_url( 'sys/css/jquery-ui.css', dirname(__FILE__) ) );
    wp_enqueue_style( 'jquery_ui_css' );
}

}
add_action(‘wp_enqueue_scripts’,’agenda_my_scripts’);

Then the child theme have the classic configuration:

/*
Theme Name:   Theme name
Theme URI:    -
Description:  Description
Author:       Author
Author URI:   -
Template:     child_template
Version:      1.0
Tags:         -
Text Domain:  child_template
*/

@import url("../twentytwelve/style.css");

where ‘template’ and ‘text domain’ match folder’s name.

Moreover, if i activate the child theme, it loads twentyfourteen!!

This is very weird…

Related posts

Leave a Reply

2 comments

  1. finally i solved it…this was a very annoying problem!
    just enter your db and change in wp_option:
    – siteurl: from localhost server’s lan ip
    – home: from localhost server’s lan ip

    that’s it! 🙂