Skip to content

Sortable Filesize Column in Media Library

/* ------------------------------ MEDIA METADATA ------------------------------ */ // edits image meta data add_action( 'add_attachment', 'my_edit_image_meta_data' ); function my_edit_image_meta_data( $post_ID ) { // checks if the uploaded file is an image if ( wp_attachment_is_image( $post_ID ) ) { // finds the total…

Mehr Lesen

Update some meta for all media library items

Only run this once! uncomment the "add_action" then open site and then comment it out again. Watch your timeout depending on how many images you have. /* * Update ALL attachments metada with Width and Height * * Important: Run…

Mehr Lesen
white computer keyboard

All relevant special charcters and their shortcuts on a Mac

@Atalt + L€Euroalt + E$Dollarshift + 4£Britisches Pfundalt + shift + 4©Copyrightalt + G®Registeredalt + R™Trademarkalt + shift + DApplealt + shift + +§Paragraphshift + 3~Tildealt + N (dann Leertaste)(Klammer aufshift + 8)Klammer zushift + 9[eckige Klammer aufalt + 5]eckige Klammer…

Mehr Lesen
a purple and white square with the word woo on it

WooCommerce: Price without Tax as Price Suffix

function show_price_without_tax($price_html, $product) { if (is_product() && wc_prices_include_tax()) return sprintf(__('%1$s', 'woocommerce'), wc_price(wc_get_price_excluding_tax($product), array('ex_tax_label' => true))); return $price_html; } add_filter('woocommerce_get_price_suffix', 'show_price_without_tax', 999, 2); Source

Mehr Lesen
person holding white samsung android smartphone

Scroll Depth Indicator

jQuery(function($) { $( document ).ready(function() { if ($('.animatedCounter').length) { $(window).scroll(testScroll); } }); var viewed = false; function isScrolledIntoView(elem) { var docViewTop = $(window).scrollTop(); var docViewBottom = docViewTop + $(window).height(); var elemTop = $(elem).offset().top; var elemBottom = elemTop + $(elem).height(); return…

Mehr Lesen

CSS-Trick: Clipping reveal for fade in left or right in WPBakery

/*ADD CLIPPING REVEAL FOR FADEIN ANIMATIONS*/ .wpb_animate_when_almost_visible.wpb_fadeInRight.animated img, .wpb_animate_when_almost_visible.wpb_fadeInLeft.animated img { -webkit-clip-path: inset(0 -1px 0 -1px); clip-path: inset(0 -1px 0 -1px); } .wpb_animate_when_almost_visible.wpb_fadeInRight img { -webkit-clip-path: inset(0 0 0 100%); clip-path: inset(0 0 0 100%); transition: -webkit-clip-path .8s cubic-bezier(.45,.05,.15,.93) .2s;…

Mehr Lesen

CSS-Trick: Stretch Column to full left or right in WPBakery

/*STRETCH COLUMN: APPLY CLASS TO ROW AND SET TO FULL WIDTH NO PADDING AND DEFAULT GUTTER*/ @media only screen and (min-width: 1280px) { .extend-right:not(.ui-sortable) .vc_column_container:first-child, .extend-right .vc_vc_column:first-child { padding-left: calc(100vw + var(--wpex-vc-gutter) - var(--wpex-container-max-width, 980px)); } .extend-left:not(.ui-sortable) .vc_column_container:last-child, .extend-left .vc_vc_column:last-child…

Mehr Lesen
An den Anfang scrollen