How to hide a widget from the main shop page

I want to hide an attribute widget from the main shop page. For example an atteribute widget such as colour doesnt need to be in the main shop page. It only needs to be there when a category is chosen in which there are colour variations. I want to hide the ‘type’ widget from the main shop page at How do i go about doing it?

Como puedo mandar llamar un widget en el Tab BAR con FLUTTER?

En los ejemplos que vienen en todas las paginas podemos hacer tab con iconos pero en el ejemplo manda llamar una imagen mi pregunta es como puedo darle click al icono del tab bar y que me mande llamar un widget o archivo .dart

ya que en el ejemplo solo viene para mandar llamar icons!!!!!


Email Notifications for news widget

I’m creating a template that will be used by for multiple sharepoint sites and was wondering if there is any way that site users can receive email notifications for new news updates so that they don’t have to constantly check the site. This has to be turned on out of by default in the “template” so that each site owner who uses the template doesn’t have to set it up manually. If this isn’t possible are there any alternatives? I’ve looked into the announcements list with flow but it doesn’t seem like they support each other either. Thanks 🙂

Display current post position in Elementor Posts widget

I’m using Elementor 2.6.8 + Elementor Pro 2.6.2

I’m designing an Archive template to display a list of Custom Post Types filtered by custom taxonomy terms. I’m using Posts Widget from Elementor Pro to do this without a line of code.

Also, thanks to Ele Custom Skin plugin (1.2.0), I can design each post skin in a custom way (hopefully Elementor Pro will provide this in the future)/

Now, I want to display, in each post, the post’s current position in the list (=in the WP loop).

I tried with this code snippet that I added to each post with the ShortCode Widget.

add_shortcode( 'current_post_count', function () {     global $  wp_query;     $  out = $  wp_query->current_post;     return $  out; } ); 

But this always return -1.

I suppose the reason is that, in the context of the Posts Widget, the global $ wp_query is not the one to get the info from. I suppose the widget use another variable. But thenm I don’t know how to achieve this. Maybe if I could get the actual $ query variable in use ? Or maybe use the Query ID parameter offered by the Posts Widget?

I don’t know how to get this to work.

Anything to point me towards the right direction guys? thanks!

KDE pager widget change size

I’m usually using 4 virtual desktops and I like to keep the so-called pager widget in the taskbar, which shows which desktop I’m currently looking at.

But the widget is relatively large:

enter image description here

Is there a way to decrease the width of the desktop symbols in the pager widget?

My plasmashell version is 5.12.8.

Magento 2 – Widget Products List sort by price

I list some products in my homepage:

{{widget type="Magento\CatalogWidget\Block\Product\ProductsList" show_pager="0" products_count="8" template="Magento_CatalogWidget::product/widget/content/grid.phtml" conditions_encoded="^[`1`:^[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Combine`,`aggregator`:`all`,`value`:`1`,`new_child`:``^]^]"}} 

and I don’t know how the products are listed? I need to sort this products by price low to high,is there anyway to made this?

Thank you

Error while extending jQuery widget

I’m trying to extend the widget in vendor/amasty/label/view/base/web/js/label.js and override a functionality in one of its methods. The error I get is:

TypeError: base is not a constructor in jquery-ui.js

These are my customizations:

  • app/code/Vendor/Module/view/base/requirejs-config.js
var config = {     map: {         '*': {             'Amasty_Label/js/label': 'Vendor_Module/js/label-extend'         }     } }; 
  • app/code/Vendor/Module/view/base/web/js/label-extend.js
define([     "jquery",     "jquery/ui",     "Amasty_Label/js/label" ], function ($  ) {     $  .widget('vendor.amShowLabel', $  .mage.amShowLabel, {          _init: function () {             this._super();         },          setLabelStyle: function() {...}     });      return $  .vendor.amShowLabel; }); 

Any idea how to solve this?

Printar ou desenhar widget com flutter

Eu tenho o seguinte dialog e gostaria de gerar um “comprovante” para que a pessoa pudesse compartilha-lo, como se fosse comprovante de pagamentos que os aplicativos de bancos geram. dialog para gerar comprovante

Consegui tirar um “print” utilizando RenderRepaintBundary, com o cĂłdigo abaixo, porem ele fica com uma resolução horrĂ­vel e com os textos bem desproporcionais.

RenderRepaintBoundary boundary = globalKey.currentContext.findRenderObject();    var image = await boundary.toImage(pixelRatio: 5.0);   ByteData byteData = await image.toByteData(format: ImageByteFormat.png);   Uint8List pngBytes = byteData.buffer.asUint8List();          final tempDir = await getTemporaryDirectory();   final file = await new File('$  {tempDir.path}/image.png').create();   await file.writeAsBytes(pngBytes);   final ByteData bytes = await rootBundle.load(file.path);   await Share.file('Invite', 'qrcode.png', bytes.buffer.asUint8List(), 'image/png', text: 'Convite para entrada no meu condomĂ­nio');