Title: Dargno's Replies | WordPress.org

---

# Dargno

  [  ](https://wordpress.org/support/users/dargno/)

 *   [Profile](https://wordpress.org/support/users/dargno/)
 *   [Topics Started](https://wordpress.org/support/users/dargno/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dargno/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dargno/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dargno/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dargno/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dargno/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Getwid - Gutenberg Blocks] Instagram block has suddenly stopped working](https://wordpress.org/support/topic/instagram-block-has-suddenly-stopped-working/)
 *  [Dargno](https://wordpress.org/support/users/dargno/)
 * (@dargno)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/instagram-block-has-suddenly-stopped-working/#post-13073832)
 * Noticed the same issue. A new instagram API should be used according to [https://forums.mobirise.com/discussion/25139/error-type-oauthexception-code-400-error-message-invalid-scope-field-s-basic](https://forums.mobirise.com/discussion/25139/error-type-oauthexception-code-400-error-message-invalid-scope-field-s-basic)
 * Hope it can be fixed soon since it’s the only reason why i currently use Getwid
   🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gutenberg] What filter to change font size of tag cloud of standardGutenber block](https://wordpress.org/support/topic/what-filter-to-change-font-size-of-tag-cloud-of-standardgutenber-block-2/)
 *  [Dargno](https://wordpress.org/support/users/dargno/)
 * (@dargno)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/what-filter-to-change-font-size-of-tag-cloud-of-standardgutenber-block-2/#post-12640022)
 * I’ve noticed the same issue… With trial and error i noticed the filter uses the
   output which you can filter. So you have to manipulate the html itself…
 * My working example:
 *     ```
       add_filter('wp_tag_cloud','set_tag_cloud_sizes');
   
       function set_tag_cloud_sizes($args) {
           $links = explode('</a>', $args);
   
           // add classes
           foreach($links as $key => $link) {
             if(strpos($link, 'style="font-size: 8pt;"')) $link = preg_replace('/(class\w?=\w?".*?)"/', '$1 small"', $link);
             if(strpos($link, 'style="font-size: 22pt;"')) $link = preg_replace('/(class\w?=\w?".*?)"/', '$1 large"', $link);
             $links[$key] = $link;
           }
           $result = implode('</a>', $links);
   
           // remove inline styling
           $patterns = '/style=".*?"/';
           $replacements = '';
           $result = preg_replace($patterns, $replacements, $result);
   
           return $result;
       }
       ```
   
    -  This reply was modified 6 years, 2 months ago by [Dargno](https://wordpress.org/support/users/dargno/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] Feature Requests](https://wordpress.org/support/topic/feature-requests-67/)
 *  [Dargno](https://wordpress.org/support/users/dargno/)
 * (@dargno)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/feature-requests-67/page/2/#post-5281100)
 * I added a preload line to add another custom function next to the ALM Empty function.
   This way i can clear/alter the div or do other custom jQuery before adding the
   content. An alternative would be to add a checkbox to refresh instead of add 
   posts (adding would be nice too but with random posts i get doubles).
 * Maybe it would be nice to implement in a future version 😉 Keep up the nice work.
 *     ```
       // ALM Empty - triggers if zero results were returned
                   if(!alm.data.length > 0){
                      if ($.isFunction($.fn.almEmpty)) {
                         $.fn.almEmpty(alm);
                      }
                   } else {
                   // ALM NOT EMPTY - do BEFORE LOADING CONTENT
                      if ($.isFunction($.fn.almPreload)) {
                         $.fn.almPreload(alm);
                      }
                   }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)