Skip to content

Instantly share code, notes, and snippets.

View phirebase's full-sized avatar
🏠
Working from home

David Klhufek phirebase

🏠
Working from home
View GitHub Profile
.blog-page .et_pb_post a img, body.archive .et_pb_post a img {
float: left;
margin-top: 0.6em;
margin-right: 1.2em;
border: solid 1px #ccc;
padding: 3px;
}
<?php
require_once( get_template_directory() . esc_attr( "/options_divi.php" ) );
global $options;
$epanel_key = "name";
$epanel_value = "Show RSS Icon";
$custom_options = array (
array( "name" => esc_html__( "Show GitHub Icon", $themename ),
"id" => $shortname."_show_github_icon",
@phirebase
phirebase / resize-divi-fullwidth-slider.css
Created March 23, 2017 17:15 — forked from mkrdip/resize-divi-fullwidth-slider.css
Resize Divi Full Width Slider on Mobile & Tablet
@media screen and (max-width:900px)
{
.et_pb_fullwidth_slider_0 .et_pb_slide {
background-size: contain!important;
height: 250px !important;
}
}
@media screen and (max-width:479px)
@phirebase
phirebase / resize-divi-fullwidth-slider.css
Created March 23, 2017 17:15 — forked from mkrdip/resize-divi-fullwidth-slider.css
Resize Divi Full Width Slider on Mobile & Tablet
@media screen and (max-width:900px)
{
.et_pb_fullwidth_slider_0 .et_pb_slide {
background-size: contain!important;
height: 250px !important;
}
}
@media screen and (max-width:479px)
@phirebase
phirebase / index.html
Created March 24, 2017 08:42 — forked from debloper/index.html
Pulsating HTML Element with just pinchful of CSS Animation
<!DOCTYPE html>
<html>
<head>
<title>CSS Pulsator</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="pulsor">Pulsate!</div>
</body>
</html>
@phirebase
phirebase / child-theme-functions-php-snippet.php
Created April 5, 2017 08:39 — forked from lots0logs/child-theme-functions-php-snippet.php
WordPress :: Divi Theme :: Disable Default Open Sans Font
<?php
/* DON'T copy the first line (above) if your functions.php already has it.
* ---------------------------------------------------------------------- */
function et_divi_fonts_url() {
$fonts_url = '';
/* Translators: If there are characters in your language that are not
* supported by Open Sans, translate this to 'off'. Do not translate
* into your own language.
*/
@phirebase
phirebase / divi_mobile_menu_fix.css
Created May 9, 2017 13:13 — forked from mikeoberdick/divi_mobile_menu_fix.css
A jQuery fix for the Divi Theme mobile menu that collapses all of the submenus
.et_mobile_menu .menu-item-has-children > a {
background-color: transparent;
}
#main-header .et_mobile_menu li ul.sub-menu.hide {
display: none !important;
visibility: hidden !important;
transition: all 1.5s ease-in-out;
}
@phirebase
phirebase / epanel-integration-body.html
Created May 16, 2017 11:50 — forked from lots0logs/epanel-integration-body.html
WordPress :: Divi Theme :: Mobile Menu Collapsible Submenus Tweak
<style>
#main-header .et_mobile_menu .menu-item-has-children > a { background-color: transparent; position: relative; }
#main-header .et_mobile_menu .menu-item-has-children > a:after { font-family: 'ETmodules'; text-align: center; speak: none; font-weight: normal; font-variant: normal; text-transform: none; -webkit-font-smoothing: antialiased; position: absolute; }
#main-header .et_mobile_menu .menu-item-has-children > a:after { font-size: 16px; content: '\4c'; top: 13px; right: 10px; }
#main-header .et_mobile_menu .menu-item-has-children.visible > a:after { content: '\4d'; }
#main-header .et_mobile_menu ul.sub-menu { display: none !important; visibility: hidden !important; transition: all 1.5s ease-in-out;}
#main-header .et_mobile_menu .visible > ul.sub-menu { display: block !important; visibility: visible !important; }
</style>
<script>
@phirebase
phirebase / hide_admin_bar.php
Created May 17, 2017 15:15 — forked from franz-josef-kaiser/hide_admin_bar.php
Hide the admin bar with the click of a button in the WP admin UI
<?php
/**
* Plugin Name: "Hide Admin Bar"-Button
* Plugin URI: http://unserkaiser.com
* Description: Easier debugging when the error message is hidden behind the admin bar.
* Version: 0.1
* Author: Franz Josef Kaiser
* Author URI: http://unserkaiser.com
*/
// Prevent loading this file directly - Busted!
.slippery:hover {
background-position: bottom center!important;
transition: background-position 5s linear 0s;
}