LebCit
Forum Replies Created
-
Forum: Themes and Templates
In reply to: My site got completely messed up! HELP!Did you try to clean the cache of your browser ???
Forum: Themes and Templates
In reply to: [Hueman] categories on home pageForum: Themes and Templates
In reply to: [Hueman] categories on home pageTry this.
Hope you’ll get it done 😉
Forum: Localhost Installs
In reply to: Error establishing a database connectionForum: Hacks
In reply to: Theme Check problemHello everyone,
I had the same issue with an underscores generated theme and this is how i solved it.
In extras.php on line 80 you’ll find
echo '<title>' . wp_title( '|', false, 'right' ) . "</title>\n";
just replace it with?> <title><?php wp_title( '|', true, 'right' ); ?></title> <?phpThat’s all folks 😉
Forum: Themes and Templates
In reply to: [Twenty Fourteen] 1.3 breaks my sitesYes this is the line, but you can now get a fresh not wrong copy of 2014
😉Forum: Themes and Templates
In reply to: Twenty Fourteen broken after update to WP 4.1Hello,
Don’t be scared, just download a fresh copy of 2014 and upload the sltyle.css to the root of your theme.
Salut
Forum: Themes and Templates
In reply to: [Twenty Fourteen] 1.3 breaks my sitesHello,
The warnings are saying :
Hey man, the file custom-header.php is missing in the inc folder of twentyfourteen !
This is why i’m not able to get it as your functions.php require on line 503So you have two options :
1- get a fresh copy of twentyfourteen and upload the custom-header.php in the inc folder
2- delete the line 503 in fuctions.phpForum: Fixing WordPress
In reply to: Giving Page its own Template/ WidgetsIt’s simpler than you think 🙂
You have to choose, in the page that you create, the full-width template.
If your theme don’t have one, you have to create it yourself.
See links belowCreate a Full Width Page for WordPress in 5 Simple Steps
Full-width page [Creating Your Own Page Templates]
And the heart of WP the CODEX
Page TemplatesHope you’ll find those links helpful 🙂
Forum: Hacks
In reply to: JavaScript loading but not working !Thanks a ZILLION time 🙂
Forum: Fixing WordPress
In reply to: Giving Page its own Template/ WidgetsHello kamran210,
Here you go Installing Google Custom Search Engine (CSE) On WordPress Site
Hope it will solve it for you 😉
Forum: Hacks
In reply to: JavaScript loading but not working !Hello esmi,
I’m not better placed than you to tell 🙂
So i’ll go with your answer.But before closing this topic, if i may, i want to know 2 things.
1- Why did it work as an html and not inside WP ?
2- If i have a js folder containing a jquery.js file, how do i enqueue this file, knowing that WP have already jquery.
P.S. : this file is 256Ko ! WP jquery is only 91KoThanks for all your help, i think that i’m on the right way now 🙂
Forum: Hacks
In reply to: JavaScript loading but not working !Hello esmi,
Thanks for simplifying my code, looks prettier now 🙂
AND, in the source code, i can now see the two scripts even without logging in 🙂 THAT’S GREAT ! (lignes 32 and 33)
BUT, still nothing. The js files won’t work.
Thanks for helping me 🙂 🙂 🙂
Forum: Hacks
In reply to: JavaScript loading but not working !This is my code in functions.php at the moment for this menu :
// *** Scripts and styles for the google nexus menu. *** function gnmenu_style() { // wp_register_style( 'gnmenustyle', get_template_directory_uri() . '/css/component.css' ); // wp_enqueue_style( 'gnmenustyle' ); } add_action( 'wp_enqueue_scripts', 'gnmenu_style' ); function gnmenu_script() { // wp_register_script( 'gnmenu', get_template_directory_uri() . '/js/gnmenu.js', array(''), '', false ); // wp_enqueue_script( 'gnmenu' ); } add_action( 'wp_enqueue_scripts', 'gnmenu_script' ); function classie_script() { // wp_register_script( 'classie', get_template_directory_uri() . '/js/classie.js', array(''), '', false ); // wp_enqueue_script( 'classie' ); } add_action( 'wp_enqueue_scripts', 'classie_script' );And this is a screenshot of my home page.
And this is the head of the source code of my home page
IMPORTANT : when logged as admin, the source code show’s on line 32 and 33 the js scripts.
But now when making you a screen shot, i logged out and the js scripts where not their anymore !Forum: Hacks
In reply to: JavaScript loading but not working !Hello esmi,
First thanks for your quick reply 🙂
without registering in a function
well because i’ve seen some tutorials doing it and in some themes also.
i’ve tried to put them in the footer than in the header
well because i was testing and trying to make it work.
When i say in the footer than in the header i mean that i tried to put first in the footer and the second time in the header by changing the parameter $in_footer of
<?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); ?>
once to true and once to false.Thanks again for helping 🙂