Garanaw
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: Javascript displayed on my footerOk, solved… It was something stupid: i had a footer > *{display:inline-block;} in my css, and that was printing the scripts.
Forum: Fixing WordPress
In reply to: Javascript displayed on my footerSorry, i forgot to tell you, I’m writing it on localhost, i can’t upload it to any host yet, still waiting to get the domain and host
Forum: Fixing WordPress
In reply to: Javascript displayed on my footerNope, same script appears on the footer, but I cannot see it on my screen. It makes me think that probably has something to do with the files i enqueued on my functions.php file, i got this function:
function my_scripts(){ wp_deregister_script('jquery'); wp_register_script('jquery', "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js", false, '2.2.0', true); wp_enqueue_script('jquery'); wp_register_script('menu-functions', get_template_directory_uri().'/js/menu.js', array('jquery'), '1.0.0', true); wp_enqueue_script('menu-functions'); wp_register_style('reset', get_template_directory_uri().'/css/reset.css', false, '1.0.1', false); wp_enqueue_style('reset'); wp_register_style('style', get_template_directory_uri().'/style.css', false, '1.0.1', false); wp_enqueue_style('style'); wp_register_style('header', get_template_directory_uri().'/css/header.css', false, '1.0.1', false); wp_enqueue_style('header'); wp_register_style('content', get_template_directory_uri().'/css/content.css', false, '1.0.1', false); wp_enqueue_style('content'); if(is_front_page()){ wp_register_script('bxslider_script', get_template_directory_uri().'/js/jquery.bxslider.min.js', array('jquery'), '1.1.0', false); wp_enqueue_script('bxslider_script'); wp_register_script('bxslider_style', get_template_directory_uri().'/js/galery.js', array('jquery', 'bxslider_script'), '3.3.5', false); wp_enqueue_script('bxslider_style'); wp_register_style('bxslider_galery', get_template_directory_uri().'/css/jquery.bxslider.css', NULL, '4.4.2', 'screen'); wp_enqueue_style('bxslider_galery'); wp_register_style('front', get_template_directory_uri().'/css/front.css', NULL, '1.0.0', 'screen'); wp_enqueue_style('front'); } if(function_exists('is_shop') AND is_shop()){ wp_register_style('shop', get_template_directory_uri().'/css/shop.css', NULL, '1.0.0', 'screen'); wp_enqueue_style('shop'); wp_register_script('shop', get_template_directory_uri().'/js/shop.js', array('jquery'), '1.0.0', false); wp_enqueue_script('shop'); } wp_register_style('footer', get_template_directory_uri().'/css/footer.css', false, '1.0.1', false); wp_enqueue_style('footer'); } add_action('wp_enqueue_scripts', 'kwind_scripts', 11);
Forum: Localhost Installs
In reply to: index overwritten by the very wordpressHi again, there’s something I’ve noticed as well: when the index.php overwrite happens, also appears the default themes I’ve deleted before. Maybe it can be some automatic actualization or something, I don’t know.
If someone can tell me how to avoid it, I’d be very thankful. Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)