:first-child applying to all links [closed]

Your code: ul#menu-menu-1 > li,a:first { margin-left: 0px; } You need to apply the first-child to the list element, and not to the link. You should also not have a comma. Comma indicates a new selection. Try this: ul#menu-menu-1 > li:first-child a{ maegin-left:0px; } *first-child does not work in ie8 and earlier.

Adding a css style to the main nav menu in child pages

in your functions.php file add the following code: if ( is_page( yourpage ) ) //yourpage can be your page’s id, title or even slug wp_enqueue_style( ‘path/to/your/custom/css/file’ ); //your stylesheet path elseif( is_page( yourpage ) ) //yourpage can be your page’s id, title or even slug wp_enqueue_style( ‘2nd/path/to/your/custom/css/file’ ); //your stylesheet path else wp_enqueue_style( ‘3rd/path/to/your/custom/css/file’ ); … Read more

Background image in posts

The quickest way to achieve this effect is to position: absolute the background image. If your background image is in front of your text you can then use z-index to change the z-order. See https://developer.mozilla.org/en-US/docs/Web/CSS/position and https://developer.mozilla.org/en-US/docs/Web/CSS/z-index for reference on the 2 mentioned properties.

Display current category without an active link in wp_list_categories

You can use get_the_category(); to display your category in menu <?php $categories = get_the_category(); $separator=” “; $output=””; if($categories){ foreach($categories as $category) { $output .= ‘<a ” href=”‘.get_category_link( $category->term_id ).'” title=”‘ . esc_attr( sprintf( __( “View all posts in %s” ), $category->name ) ) . ‘”>’.$category->cat_name.'</a>’.$separator; } echo trim($output, $separator); } ?> I used the <a> … Read more

jQuery not working when used with wordpress menu

You are missing <script> tags You are using the wrong jQuery variable name. If you want to use the $ alias you need to use noConflict as helgatheviking suggested or switch to “jQuery” instead of $ You are missing }); at the end of the code you posted above You should consider separating your JS … Read more