Skip to content

Instantly share code, notes, and snippets.

View DigitalEssence's full-sized avatar

Hedley Phillips DigitalEssence

View GitHub Profile
#full_slider_1 {border-bottom:30px solid #E62A36;}
@DigitalEssence
DigitalEssence / WordPress - Add company Logo to login Screen
Created June 26, 2017 08:25
WordPress - Add company Logo to login Screen
function my_login_logo() { ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/site-login-logo.png);
height:65px;
width:320px;
background-size: 320px 65px;
background-repeat: no-repeat;
padding-bottom: 30px;
}
@DigitalEssence
DigitalEssence / WordPress - Enfold - CSS - Change colour of image link hover circle
Created October 28, 2016 11:41
WordPress - Enfold - CSS - Change colour of image link hover circle
@DigitalEssence
DigitalEssence / WordPress - EventManager - Show other events in same category
Created September 1, 2016 09:03
WordPress - EventManager - Show other events in same category
<?php
if (class_exists('EM_Events')) {
$currentid = $EM_Event->id; //get and store the current event id
$cats = $EM_Event->get_categories(); //get the categories for the current event
$cat_ids = $cats->get_ids(); //get the ids for the categories of the current event
$cat_ids_strg = implode(',', $cat_ids); //make a comma seperated string of category ids
//use categories to find similar events
$sim_events = EM_Events::get(array('limit'=>9,'category'=>$cat_ids_strg,'orderby'=>'start_date')); //build an array of up to 9 events that are similar to the current event
@DigitalEssence
DigitalEssence / WordPress - Enfold - CSS - Make menu full width and responsive
Created August 31, 2016 14:55
WordPress - Enfold - CSS - Make menu full width and responsive
#header #header_main_alternate .container ul{
display: flex;
justify-content: space-between;
}
#header #header_main_alternate .container li{
float: none;
}
@DigitalEssence
DigitalEssence / WordPress - Enfold - CSS - Disable image hover overlay
Created August 25, 2016 17:14
WordPress - Enfold - CSS - Disable image hover overlay
.image-overlay {
display: none !important;
}
@DigitalEssence
DigitalEssence / WordPress - Enfold - HTML CSS - Footer Social Icons
Created August 16, 2016 14:12
WordPress - Enfold - HTML/CSS - Footer Social Icons
@DigitalEssence
DigitalEssence / WordPress - Enfold - CSS - Hide arrow in read more link and replace with other content
Created July 20, 2016 15:27
WordPress - Enfold - CSS - Hide arrow in read more link and replace with other content
@DigitalEssence
DigitalEssence / Replace Blog post default icon
Created July 19, 2016 12:15
Replace Blog post default icon
span.fallback-post-type-icon:before {
display: none;
}
span.fallback-post-type-icon {
background: url(http://shaftesbury-remembers.goldhillmuseum.org.uk/wp-content/uploads/2016/07/poppy_3.png)!important;
background-size: contain!important;
background-repeat: no-repeat!important;
background-position: 50% 50%!important;
}
@DigitalEssence
DigitalEssence / WordPress - Enfold - CC - Remove bottom border from colour section
Created May 5, 2016 17:47
WordPress - Enfold - CC - Remove bottom border from colour section
.main_color {border: none!important;}