CSS – why does my sidebar drops to the bottom of the page? [closed]

Your #leftcontent div is not closed out with a closing </div> tag after your loop. Edit your index.php, find the Loop, and look for the end of the loop (usually it looks like endwhile; endif;. Add a closing </div> tag immediately after that (but outside of the <?php … ?> tags).

How to add drag and drop functionalities to a div inside option panel

3 steps: php <?php wp_enqueue_script( ‘jquery-ui-sortable’); html <div class=”metabox-holder”> <div class=”postbox-container”> <div id=”my_div” class=”meta-box-sortables ui-sortable”> <div class=”postbox” id=”el1″> <h3 class=”hndle”><span>title2</span></h3> <div class=”inside”>content1</div> </div> […elements…] <div class=”postbox” id=”el20″> <h3 class=”hndle”><span>title20</span></h3> <div class=”inside”>content1</div> </div> </div> </div> javascript <script type=”text/javascript”> jQuery(document).ready(function(){ jQuery(‘#my_div’).sortable(); });

Getting values from options page to css

You are doing it correctly. I would suggest two enhancements: Do not put this code directly in header.php. Create a custom function to print the css and hook this into the wp_head action. Always sanitize/escape input before you print it to the screen. Look into ctype_xdigit() for creating a custom function to sanitize you color … Read more

wordpress admin plugin menu custom css

Use the admin_head hook and just echo out what you need to: function my_admin_head() { // Custom Style echo ‘<link rel=”stylesheet” href=”‘.WP_PLUGIN_DIR.’/style.css” type=”text/css” />’; // Our JS echo ‘<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js”></script>’; } add_action(‘admin_head’, ‘my_admin_head’);