Basics of changing plugin output

Take a look at WordPress hooks from the Plugin API. There are actions and filters to be used by plugin authors so that other developers could alter the content without changing the core code. However, if they are not used properly (or missing), the only two options are CSS changes (wherever possible, because stylesheets could … Read more

Superfish Menu Not Loading

You might want to take a look at the wp_enqueue_script() documentation and modify your code to follow standard WordPress practice. Then look at your output and verify that your JS is being loaded.

Give each post type label a different color?

You can do something like this: <a href=”https://wordpress.stackexchange.com/questions/80014/<?php echo get_post_type( $post->ID ); ?>” class=”<?php echo str_replace(‘ ‘, ‘-‘, get_post_type( $post->ID )); ?>”> <?php $post_type = get_post_type_object( get_post_type($post) ); echo $post_type->label ; ?> </a> and in your CSS part you can do something like: .pretty-little-liars { background color: khaki; } .once-upon-a-time { background color: blue; }

Menu Arrow for Child Element

To add arrow for parent elements: jQuery + CSS Solution: JQUERY: jQuery(function($){ $(document).ready(function(){ $(‘ul.sub-menu’).parent().addClass(‘drop-down’); // Add Sub-Menu Class to insert personalized style $(‘li.drop-down > a:first-child’).wrapInner(‘<span class=”menu-bullet” />’); // Add .menu-bullet in span to insert your arrow image background }); }); CSS: div#nav ul li.drop-down a .menu-bullet {display:block; background:url(your_image_path.jpg) no-repeat; padding-left:15px; /* padding left value is … Read more

Wooslider custom css

You need to register and/or enqueue your stylesheet and hook it to wp_enqueue_scripts with a priority high enough that it loads after the Woothemes default. function load_my_style_wpse_87804() { wp_register_style( ‘mystyle’, get_template_directory_uri() .’/path/to/mystyle.css’); wp_enqueue_style( ‘mystyle’ ); } add_action(‘wp_enqueue_scripts’,’load_my_style_wpse_87804′,100); You may need an even higher priority (third parameter), but eventually you should get one high enough. This … Read more

Is there any way to stylize articles one by one?

The $current_post property of the WP_Query object for the Loop should tell you which post you are on. Something like this should work: <?php $pclass = ($wp_query->current_post === 1) ? ‘middle-post-class’ : ‘first-last-class’ ; ?> <div id=”post-style” <?php post_class($pclass); ?> > <h1 class=”title”><a href=”https://wordpress.stackexchange.com/questions/87942/<?php the_permalink() ?>”><?php the_title(); ?></a></h1> <?php the_content(); ?> </div> The built in … Read more

Add class to DIV depending on page loaded

You might want to consider using the WordPress function body_class() <body <?php body_class($class); ?>> Then you could use the body class as your current page reference. This function is for example used by the Twenty-Twelve theme. For a single post it will become <body class=”single single-post …”> and for the home page: <body class=”home blog … Read more

Display Something in the Header After All Styles are Loaded

Hook to wp_enqueue_scripts with a high priority number. For example: function load_my_style_wpse_90225() { wp_register_style( ‘mystyle’, get_template_directory_uri() .’/path/to/stylesheet.css’); wp_enqueue_style( ‘mystyle’ ); } add_action(‘wp_enqueue_scripts’,’load_my_style_wpse_90225′,1000); That should reasonably load last in line. Basically the same answer as here: Wooslider custom css Refernce http://codex.wordpress.org/Function_Reference/add_action