Add space to the end on a widget

In your style.css add this: .widget { margin-bottom: 20px; } That should give all your widgets 20 pixels of spacing but only works when the widgets are stacked on top of eachother. If you have multiple sidebars and only want this to happen on a single sidebar, add a more-specific selector i.e. .my-special-sidebar .widget { … Read more

Code to Show for One post only in head

Write a function, and define it as a callback on the wp_head hook: <?php /** * print a alternate link on head for a several post * * @wp-hook wp_head * @return void */ function wpse_162849_print_alternate_link() { //don’t do anything expect on singular pages if ( ! is_singular() ) return; // check the global post … Read more