Skip to content

Instantly share code, notes, and snippets.

@JoelEadeDesign
Last active August 29, 2015 14:05
Show Gist options
  • Save JoelEadeDesign/d0334fb8bb77dcec2300 to your computer and use it in GitHub Desktop.
Save JoelEadeDesign/d0334fb8bb77dcec2300 to your computer and use it in GitHub Desktop.
Fixed Position Button for WooFramework 6
/* ----------------------------- */
/* ADMIN CSS
/* Pop this in your theme's functions.php file
/* ----------------------------- */
add_action('admin_head', 'my_custom_css');
function my_custom_css() {
echo '<style>
.wf-wrap p.submit {
position: fixed;
right: 0;
bottom: 0;
width: auto;
padding: 30px;
background: rgba(255,255,255,0.75);
border-radius: 4px;
box-shadow: 0 0 40px rgba(0,0,0,0.1);
}
</style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment