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
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".hyper_this").on('click', function(){
window.location = "https://divinotes.com/free-premium-divi-theme-layouts/";
});
});
</script>
@phirebase
phirebase / functions.php
Created March 21, 2018 13:43 — forked from jamesfosker/functions.php
Change the slugs of project post, project category and project tags, add this to your child theme functions.php, once you've changed the slug on line 5, 20 & 38, go to your dashboard and go setting/permalinks and just hit the save button to update the slugs
/*Change Project Post Type Slug*/
function ds_divi_modify_project_post_slug() {
return array(
'feeds' => true,
'slug' => 'new-slug', /*Change text between brackets*/
'with_front' => false,
);
}
add_filter( 'et_project_posttype_rewrite_args', 'ds_divi_modify_project_post_slug' );
@phirebase
phirebase / functions.php
Created November 22, 2017 13:14 — forked from indikatordesign/functions.php
[Combine "Divi - Filterable Blog Module" with the "Events Manager" plugin]
<?php
// Here you can see how to combine "Divi - Filterable Blog Module" with the free plugin "Events Manager": https://wordpress.org/plugins/events-manager/
// Just add these snippets to your themes functions.php and change them according to your needs.
// Combine Event Manager with "Divi – Filterable Blog Module" by changing the $query_args
add_filter( 'dfbm_query_args_output', function( $query_args )
{
if ( 'event' == $query_args['post_type'] )
.slippery:hover {
background-position: bottom center!important;
transition: background-position 5s linear 0s;
}
@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!
@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 / 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 / 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 / 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>