Dplugins Logo
  • Code Snippets
  • Code Request
  • Register
    • Register as Contributor
    • Editor Guidelines
  • Account
  • woocommerce product custom gallery slider example

    woocommerce product custom gallery slider example

    Here is an example code snippet for creating a custom gallery slider for WooCommerce products: In this example, we are using the woocommerce_product_thumbnails action hook to add a custom gallery slider to the product page. We are using the Owl Carousel jQuery plugin to create the slider and enqueueing its required CSS and JS files.…

    Category: Oxygen, WooCommerce
    Sumit Singh

    Sumit Singh

    Tags: hook, single product, Tips, WooCommerce
  • Notify Admin When New Account Is Created

    Notify Admin When New Account Is Created

    Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Scripts organizer plugin. Avoid adding custom code directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme.

    Category: WooCommerce, WordPress

    Sumit Singh

    Tags: Tips, WooCommerce
  • WooCommerce Product Slider with flexslider js in Oxygen

    WooCommerce Product Slider with flexslider js in Oxygen

    Create template that applies to Singular Products with Oxygen or if you have already created then edit. Add a Code Block where you want to display the product slider. Advanced > Size & Spacing > Width: 100%. PHP & HTML: I have added flexslider js and css CDN live link. So you can do on…

    Category: JavaScript, Oxygen, WooCommerce, WordPress

    Sumit Singh

    Tags: flexslider, Gallery, single product, WooCommerce
  • Display Most Popular Post Without Using Plugin in WordPress

    Display Most Popular Post Without Using Plugin in WordPress

    There are numerous plugins available on the WordPress plugin directory for most popular posts. We are going to display the most popular post using the simple post query based on post views. We will be using post Meta to store the views count and we’ll fetch the posts according to the views count using the…

    Category: WordPress

    Sumit Singh

    Tags: Custom Post, Most Popular
  • Find all functions hooked to a WordPress action / filter

    Quite simply add this near the apply_filters or do_action.

    Category: WordPress

    Sumit Singh

    Tags: hook
  • Disable WooCommerce Marketing menu

    Disable WooCommerce Marketing menu

    Add the following PHP code snippet in your favorite code manager plugin like Scripts organizer and set it to load on front end

    Category: Oxygen, WooCommerce

    Sumit Singh

    Tags: hook, WooCommerce, WP Admin
  • Convert WordPress Image Filename To Lowercase

    Convert WordPress Image Filename To Lowercase

    WordPress by default will preserve capitalization in filename for images. To make filenames lowercase automatically. Add the following PHP code snippet in your favorite code manager plugin like Scripts organizer and set it to load on front end:

    Category: WordPress

    Sumit Singh

    Tags: Convert, Filename, Image
  • How to add dynamic ACF Image Alt Text with  in Oxygen

    How to add dynamic ACF Image Alt Text with in Oxygen

    Oxygen page builder Image element does provide the feature to insert an Image-type custom field’s Alt text using the dynamic data. but if you need overwrite then see 2nd option. Step for show alt tag for image. Ensure that your Image field’s Return Format is set to Image Array in your ACF field group. Step 2 Option 1 Option…

    Category: ACF, Oxygen, WordPress

    Sumit Singh

    Tags: ACF, Alt, dynamic, Image
  • Show/hide section based on Number of WooCommerce Upsells in Oxygen on single product

    Show/hide section based on Number of WooCommerce Upsells in Oxygen on single product

    1st Step Install and activate Code Snippets plugin. Add below code in code snippets: 2nd Step Edit the Oxygen Template that applies to woo single products. For the element you want to apply the “minimum 1 upsell” condition, click on Conditions icon then Set Conditions. Click “Add Condition” icon. Choose Dynamic Data condition. Under Advanced click PHP Function Return value. Function Name: wpl_check_upsell_product…

    Category: Oxygen, WooCommerce

    Sumit Singh

    Tags: single product, Upsells, WooCommerce
  • Remove Custom Post Type Name from Permalink in WordPress

    Remove Custom Post Type Name from Permalink in WordPress

    Are you Curious how to remove the slug of a custom post type in WordPress? If you’re using CPT UI, there’s an option called With Front but that doesn’t always seem to work. Follow this tutorial, add these two simple functions and the slug will be removed from your custom post type URL. Note –…

    Category: WordPress

    Sumit Singh

    Tags: Custom Post, Permalink
  • How to remove Archive:, Category: Etc. Pre-Title inserts in Archive Titles

    How to remove Archive:, Category: Etc. Pre-Title inserts in Archive Titles

    If you would like to get rid of the “Category:”, “Tag:”, “Author:”, “Archives:” and “Other taxonomy name:” in the archive title, use this little function in Code Snippets The Below can be added using a plugin like Code Scripts organizer or Code Snippets.

    Category: Oxygen, WordPress

    Sumit Singh

    Tags: archive, Category, Titles
  • Add WooCommerce Cart Icon on your website with Cart Item Count

    Add WooCommerce Cart Icon on your website with Cart Item Count

    Here is a way to add WooCommerce cart icon to a menu with the cart item count, it links to the cart page and displays the number of items that have been added to the cart.The code uses three functions which need to be added to Snippet plugin. Create a shortcode for the WooCommerce cart,…

    Category: Oxygen, WooCommerce, WordPress

    Sumit Singh

    Tags: Cart, Tutorial, WooCommerce
  • How to add condition is author archive on oxygen archive page

    How to add condition is author archive on oxygen archive page

    Control the output of elements on archive pages based on the author archive Here’s How Install and activate Code Snippets plugin. Go to Snippets > Add New. Title: Condition Author Archive Type Code Screenshot and code: Condition Screenshot in Archive page If you can any query feel free connect on my FB page https://www.facebook.com/wploversteam/

    Category: Oxygen, WordPress

    Sumit Singh

    Tags: archive, author, condition
  • Fetch best seller of WooCommerce in oxygen repeater / Easy posts

    Fetch best seller of WooCommerce in oxygen repeater / Easy posts

     For retrieving the best buying products in WooCommerce we are using wp_query manipulation with meta_key as “total_sales” and orderby “meta_value_num”. In short we are displaying products as per the total sales number. Here is Screenshot for repeater / easy posts Step 1 – Select Advance WP Query Step 2 – Setup Advance WP Query as…

    Category: Oxygen, WooCommerce, WordPress

    Sumit Singh

    Tags: best seller, Easy posts, repeater, WooCommerce
  • Add social share buttons in Oxygen’s repeater with Shortcode

    Add social share buttons in Oxygen’s repeater with Shortcode

    This tutorial will show you how to easily add social share buttons into a repeater with Shortcode in Oxygen. Add this to a template to get the social share capability on all your posts and pages in WordPress. Above shortcode you can use on as per Screenshot. Like & follow for WordPress tips 🙂

    Category: Oxygen, WordPress

    Sumit Singh

    Tags: buttons, Oxygen, repeater, share, social

3rd party plugins admin after_body Alt archive Blocks Category clean up composite elemenets core CPT CSS Custom Custom Post Dashboard flexslider Front End FSE full site editing Gallery hook HTML Image load styles Must Have notice Oxygen Password Permalink plugins Post List Publish Date repeater settings page share single product Taxonomy Taxonomy Term themes Tips Topbar WooCommerce wordpress WP Admin WPML

Proudly Powered by DPlugins