This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Add a custom column to display favorite count of each post | |
| add_filter('manage_post_posts_columns', 'add_favorited_users_column'); | |
| function add_favorited_users_column($columns) { | |
| $columns['favorited_users'] = 'Favorited Count'; | |
| return $columns; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* hide variant container, quantity, price */ | |
| %root% .fc-product-variants, | |
| %root% .fc-product-quantity-container, | |
| %root% .fc-product-item-price { | |
| display: none!important; | |
| } | |
| /* | |
| // optionally hide the buy now button |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function($) { | |
| let carouselSelector = '.my-carousel'; /* change to class of your carousel element */ | |
| /* get the flickity instance to control the carousel */ | |
| let $carousel = $(carouselSelector).find($(carouselSelector).children().data('carousel')); | |
| let flkty = $carousel.data('flickity'); | |
| // 1. Update aria-current on image as carousel moves ----- |
NewerOlder