Use WordPress Built In Jquery

The jQuery object is jQuery rather than $. See noConflict wrappers in wp_enqueue_script for some examples. jQuery(document).ready(function($) { // Inside of this function, $() will work as an alias for jQuery() // and other libraries also using $ will not be accessible under this shortcut });

Put CSS on TOP, how?

Would be interesting to see if you get the same YSlow message when checking your site without any plugins. Its a little difficult to be sure because of the minification of HTML/CSS on your site, but it seems some of the plugins are not inserting stylesheets in to the <head> part of your document, and … Read more

Javascript not working on index.php but it is working on single post’s page

The proper way to enqueue a script is as follows: function mathJax_scripts() { wp_enqueue_script( ‘mathjax-js’, http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML’, array(), ‘2.7.1’, false ); } add_action( ‘wp_enqueue_scripts’, ‘mathJax_scripts’ ); I added the version number (2.7.1) and I flipped the final parameter to ‘false’ – that last parameter asks ‘add script to footer?’, true means yes, false means no. Then … Read more

How to have H1 for site title only on Homepage?

This is one way… <?php $headertag = ( is_front_page() ) ? ‘h1’ : ‘h6’; ?> <hgroup> <<?php echo $headertag; ?> class=”site-title”><a href=”https://wordpress.stackexchange.com/questions/88144/<?php echo home_url(“https://wordpress.stackexchange.com/” ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></a></<?php echo $headertag; ?>> <h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2> </hgroup>

My CSS, footer and header don’t show up!

This is how your index.php and other public facing pages should be.. Don’t forget to add get_header() and get_footer() <?php get_header(); ?> <!– Row for main content area –> <div id=”content”> <div> <!– Main Content Loop HERE, or just use while have posts and get the content;..–> <?php get_template_part(‘loop’, ‘index’); ?> </div> </div><!– End Content … Read more

Have image slider display only on home page

Try this <?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id=”content”> * * @package GovPress */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset=”<?php bloginfo( ‘charset’ ); ?>”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title> <link rel=”profile” … Read more