Thanks! Any ideas why that would work on one server, but not another?
I also have this one:
<?
function list_scripts() {
wp_enqueue_style('font1', 'https://fonts.googleapis.com/css?family=Lato');
wp_enqueue_style('font-awesome', 'https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css');
wp_enqueue_style('normalize', get_stylesheet_directory_uri() . '/jplist/css/vendor/normalize.css');
wp_enqueue_style('styles', get_stylesheet_directory_uri() . '/jplist/css/styles.min.css');
wp_enqueue_script('jquery', '/wp-includes/js/jquery/jquery.js');
//mediaswitch
wp_enqueue_style('mediacheck', get_stylesheet_directory_uri() . '/mediacheck/css/base.css');
wp_enqueue_script('mediacheck', get_stylesheet_directory_uri() . '/mediacheck/js/mediaCheck-min.js');
//jquery ui
wp_enqueue_style('jquery-ui', get_stylesheet_directory_uri() . '/jplist/css/vendor/jquery-ui.min.css');
wp_enqueue_script('jquery-ui', get_stylesheet_directory_uri() . '/jplist/js/vendor/jquery-ui.min.js');
wp_enqueue_script('jquery-ui-touch-punch', get_stylesheet_directory_uri() . '/touchpunch/js/jquery.ui.touch-punch.min.js');
//jplist core
wp_enqueue_style('jplist', get_stylesheet_directory_uri() . '/jplist/css/jplist-core.min.css');
wp_enqueue_script('jplist-core', get_stylesheet_directory_uri() . '/jplist/js/jplist-core.min.js');
//jplist views
wp_enqueue_style('jplist-views-control', get_stylesheet_directory_uri() . '/jplist/css/jplist-views-control.min.css');
wp_enqueue_script('jplist-views-control', get_stylesheet_directory_uri() . '/jplist/js/jplist.views-control.min.js');
//jplist pagination
wp_enqueue_style('jplist-pagination-bundle', get_stylesheet_directory_uri() . '/jplist/css/jplist-pagination-bundle.min.css');
wp_enqueue_script('jplist-pagination-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.pagination-bundle.min.js');
//jplist history
wp_enqueue_style('jplist-history-bundle', get_stylesheet_directory_uri() . '/jplist/css/jplist-history-bundle.min.css');
wp_enqueue_script('jplist-history-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.history-bundle.min.js');
//jplist toggle
wp_enqueue_style('jplist-filter-toggle-bundle', get_stylesheet_directory_uri() . '/jplist/css/jplist-filter-toggle-bundle.min.css');
wp_enqueue_script('jplist-filter-toggle-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.filter-toggle-bundle.min.js');
//jplist jqueryui
wp_enqueue_style('jplist-jquery-ui-bundle', get_stylesheet_directory_uri() . '/jplist/css/jplist-jquery-ui-bundle.min.css');
wp_enqueue_script('jplist-jquery-ui-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.jquery-ui-bundle.min.js');
//jplist dropdown
wp_enqueue_script('jplist.filter-dropdown-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.filter-dropdown-bundle.min.js');
wp_enqueue_style('smart_table', get_stylesheet_directory_uri() . '/css/smart_table.css');
wp_enqueue_script('smart_table', get_stylesheet_directory_uri() . '/js/smart_table.js');
}
add_action( 'wp_enqueue_scripts', 'list_scripts' );
?>'
I am changing the opening tag and removing the closing tag. But I am getting a different error.
-
This reply was modified 6 years, 11 months ago by senojeel.