Skip to content

Instantly share code, notes, and snippets.

View lots0logs's full-sized avatar
🧑‍💻

Dustin Falgout lots0logs

🧑‍💻
View GitHub Profile
@lots0logs
lots0logs / functions.php
Last active July 25, 2017 18:38
WordPress :: Featured Image In RSS Feed For MailChimp
// add the namespace to the RSS opening element
function add_media_namespace() {
echo 'xmlns:media="http://search.yahoo.com/mrss/"\n';
}
add_action( 'rss2_ns', 'add_media_namespace' );
function add_featured_image_in_rss() {
$featured_image = false;
if ( has_post_thumbnail() ) {
// add the namespace to the RSS opening element
function add_media_namespace() {
echo 'xmlns:media="http://search.yahoo.com/mrss/"\n';
}
add_action( 'rss2_ns', 'add_media_namespace' );
<script>
(function($) {
$(document).ready(function() {
setTimeout(function() {
window.et_duplicate_menu = function( menu, append_to, menu_id, menu_class ){
append_to.each( function() {
var $this_menu = $(this),
$cloned_nav;
menu.clone().attr('id',menu_id).removeClass().attr('class',menu_class).appendTo( $this_menu );
@lots0logs
lots0logs / functions.php
Created December 18, 2015 01:10
Divi - Custom Sidebar For WooCommerce Pages
<?php /* Don't include this line if your child theme functions.php already includes it */
function my_et_divi_output_content_wrapper_end() {
echo '</div> <!-- #left-area -->';
if (
( is_product() && 'et_full_width_page' !== get_post_meta( get_the_ID(), '_et_pb_page_layout', true ) )
||
( ( is_shop() || is_product_category() || is_product_tag() ) && 'et_full_width_page' !== et_get_option( 'divi_shop_page_sidebar', 'et_right_sidebar' ) )
) {
dynamic_sidebar( 'eCommerce Sidebar' );
@lots0logs
lots0logs / epanel-integration-body.html
Last active December 31, 2015 20:50
Divi RTL Columns Fix: Add to ePanel>>Integrations>>Add to the <body>:
<script>
(function($) {
var rtl_mobile = false,
rtl_tablet = false,
running = false;
function toggle_booleon_value(val) {
return (true === val) ? false : true;
}
@lots0logs
lots0logs / PKGBUILD
Last active December 27, 2015 04:45
PKGBUILD :: ajenti-git :: Use the 1.x branch which is the current officially supported version of Ajenti
# Maintainer: Konstantin Stepanov <me@kstep.me>
pkgname=ajenti-git
pkgver=1.2.23.2
pkgrel=1
pkgdesc='An easy server administration frontend.'
arch=(any)
url="http://github.com/Eugeny/ajenti/"
license=(LGPL)
depends=(python2-gevent-socketio python2-lxml python2-passlib python2-psutil python2-daemon
@lots0logs
lots0logs / epanel-integration-body.html
Last active May 16, 2017 11:50
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>
@lots0logs
lots0logs / snippet.css
Created January 4, 2016 01:17
WordPress :: Divi Theme :: Reduce space between single post title and body content for mobile
@media (max-width: 768px) {
.single .entry-content > .et_pb_section:first-child > .et_pb_row:first-child {
padding-top: 0px;
}
}
@lots0logs
lots0logs / snippet.css
Created January 4, 2016 01:22
WordPress :: Bloom Plugin :: Adjust image size to make padding even for popup opt-in
.et_bloom_optin_1 .et_bloom_image {
height: 430px;
}
@lots0logs
lots0logs / epanel-integration-body.html
Last active February 9, 2016 20:53
WordPress :: Divi Builder :: RTL Columns Mobile Fix
<script>
(function($) {
var rtl_mobile = false,
rtl_tablet = false,
running = false;
function toggle_booleon_value(val) {
return (true === val) ? false : true;
}