How to add logo to a WordPress Custom Plugin?

I hope you are referring about plugin icons. Actually these icons are not adding in plugin folder. These are coming from from wordpress account. When you upload plugin into wordpress plugin repository, icons and images are upload to assets directory of your SVN directory. You can add icon as icon-256×256.png and it will appear in … Read more

How to get saved elementor template list programmatically?

Found my own answer. To get the elementor template list you can use this snippets code $args = array( ‘post_type’ => ‘elementor_library’, // ‘posts_per_page’ => 30, ‘tabs_group’ => ‘library’, ‘elementor_library_type’ => ‘page’, ); $elementor_templates = get_posts($args); Now, to display it as dropdown select element, you can iterate through elementor_templates foreach ($elementor_templates as $elementor_template) { echo … Read more

FacetWP breaks jQuery events

Okay, to answer my own question – I just had to rewrite the function and use .on(), as it listens to changes in the DOM. Like this: $(document).on( ‘click’, ‘.email’, function() { var $this = $(this); $this.parent().toggleClass(‘open’); }); Inspired by this piece of documentation: https://facetwp.com/use-jquery-on-instead-of-click/