krzd7
Forum Replies Created
-
Thanks, it works!
Hi,
The “Inherit form Post (type) Query” option works. I have also tested the “load more” button and could not find any issues while filtering, disabling, loading, etc.
Thanks.
Hello,
I have tested and it works!
Thanks a lot.
Thanks, I’ll take a look after the next update.
Ok, I managed to find the block using Google fonts.
Is it possible for you to add a global option on Gutentor plugin settings to “Never import Google fonts” or something like that? Or is there a filter_remove call that would prevent enqueue_google_fonts?
It could be useful when dealing with other people creating and editing pages/posts. I was trying to optimize theme’s stylesheets itself and it caused an unnecessary overhead (calling Roboto and Open Sans twice).
Thanks a lot!
I tried a few things, including the wordpress filter_remove (wp_head), but I’m unable to prevent Gutentor from adding this link. I’ve tracked this down to Gutentor’s dynamic-css.php file (enqueue_google_fonts).
I’m not sure if there is a cache somewhere I need to clean up, considering I already reverted the typography settings to “Default”, but the plugin is still loading the fonts.
I ended up commenting the includes/dynamic-css.php file, line:
add_filter( 'wp_head', array( $this, 'enqueue_google_fonts' ), 100 );
Is there a better way of solving this without editing the plugin files?
Thanks
Hi,
I have tested this and, except for the sanity checks, it behaves the same. It triggers the click even if the flex menu is not open at all, but it does not seem to matter that much.
Thanks for adding this, I’ll remove my custom js once you guys update ??
I tried setting Gutentor blocks and Global settings but it did not unload the Noto Serif font. I’ll check my other plugins but, after setting the Global typography settings from Default to Google (Roboto and Open Sans), Gutentor started adding the following line:
<link id="gutentor-google-fonts" href="//fonts.googleapis.com/css?family=Open+Sans:regular|Roboto:regular,700" rel="stylesheet" />
I tried to roll back to “Default” font on all elements, but now I can’t get rid of this css import line.
Thanks ??
I ended up implementing your idea of closing when clicking outside the flex menu, in case you want to add for the next update.
In fact, you’ll see that I’ve combined both ideas but commented the conditional that would close when clicking the link itself.
$(document).on('click', function(e) { var flexMenuPopup = $('ul.flexMenu-popup'); if (!flexMenuPopup || !flexMenuPopup.is(":visible")) return; var target = $(e.target); if (!target /*|| target.parents('li.gutentor-filter-item').length*/ || !target.parents('ul.gutentor-filter-list').length) { flexMenuPopup.hide(); } });
Close by clicking outside the menu would be great.
Your code/suggestion works just fine, thanks a lot.
Found another minor issue: even though after page load the button correctly gets disabled, I still can click/query for more posts once.
It works, thanks guys!
Hello,
It works for me (disabled on page load if no more posts), but now the load more button is loading posts from categories that I have not selected.
I tried to following:
1. Taxonomy Type: Categories
2. On the area below taxonomy type I have selected only one category;
3. Number of items: 2I have more than 2 items on that category, it shows the load more button, but if I click it, it loads posts from other categories as well.
Another issue is that it does not know that there are no more posts on that scenario where you keep clicking the load more button. I still have to click it so it gets disabled after loading the last elements.
Thanks a lot.
Hello,
Sorry, my bad. The advanced text block indeed has this option, but the whole situation was caused because of a single URL that I forgot to mark to open in a new tab, so WordPress was not adding the rel=”noreferrer noopener”.
Thanks a lot!