Filter Category Descriptions from modified Elementor Portfolio-Widget with Isotope

jQuery(document).ready(function( $ ){ // --- filter ---------------------------------------------------- $('.elementor-portfolio__filter').addClass('filterbutton'); var grid = $('.elementor-portfolio__category-description'); // outer box of filterable elements var item = '.elementor-category__description-item'; // item var filteritem = $('.filterbutton'); // filter-button…

0 Kommentare

toggle between two functions:

https://codepad.co/snippet/yikUoeWP //----------- shrink filterbox ---------------- $.fn.clickToggle = function(a,b) { function cb(){ [b,a][this._tog^=1].call(this); } return this.on("click", cb); }; $(".clickme p").clickToggle(function(){ $( '.filterbox' ).addClass( 'shrink' ); $('div.elementor-portfolio__filters ul').hide(); }, function(){ $( '.filterbox'…

0 Kommentare

Elementor: Loop-Template -> Post-Widget + Filterbar

Filterbar: <div id="portfolio-filter-box"> <div class="filterbox"> <div id="clickme"></div> <div class="elementor-portfolio__filters"> <div class="elementor-portfolio__filter-elements"> <div class="elementor-portfolio__filter" data-filter="*">show</div> <div class="elementor-portfolio__filter" data-filter=".category-vorschau">vorschau</div> <div class="elementor-portfolio__filter" data-filter=".category-aktuell">aktuell</div> </div> </div> </div> </div>

0 Kommentare

Define default terms for custom taxonomies

/** * Author: Michael Fields * Source: http://wordpress.mfields.org/2010/set-default-terms-for-your-custom-taxonomies-in-wordpress-3-0/ * Thanks a lot for the nice tweak */ /** * Define default terms for custom taxonomies in WordPress 3.0.1 * *…

0 Kommentare

Custom Post Types (PODS) -> Elementor Archive-Widget

Include Custom Post Type to Archive-Query https://wordpress.stackexchange.com/a/154750 add_action( 'pre_get_posts', function ( $query ) { if ( !is_admin() && $query->is_main_query() && $query->is_archive() ) $query->set( 'post_type', array( 'post', 'ausstellungen' ) ); });

0 Kommentare