Dplugins Logo
  • Code Snippets
  • Code Request
  • Register
    • Register as Contributor
    • Editor Guidelines
  • Account
  • Lockdown Admin Backend to your IP

    This code allows you to lock down your Wordperss Admin Backend so you can only see it from your current IP address. Open Your File Manager in your cpanel Navigate to the wp-admin folderhome > yoursite> public_html > wp-admin Create a file called.htaccess(it must have a (.) DOT) this is a hidden security file. Edit…

    Category: WordPress

    smartsovereign

  • Add Tags and Categories to a Page

    Add Tags and Categories to a Page

    WordPress does not have the ability to add Tags and Categories to Pages by default. This is sometimes useful in order to filter pages easily using the Oxygen Repeater Element. Paste the Below Code in the PHP section of your favourite code editor and set Visibility to everywhere, no need for an extra plugin. Add…

    Category: WordPress

    smartsovereign

    Tags: Oxygen, WP Admin
  • Redirect to page if only 1 result is found

    Redirect to page if only 1 result is found

    Use this code to redirect a viewer directly to the page, if only 1 search result is found. Useful when people know exactly the model number they want for an ecom store.

    Category: WordPress

    smartsovereign

    Tags: single product, WooCommerce
  • How to hide the admin bar?

    How to hide the admin bar?

    In this tutorial you will learn now to hide the admin bar when logged in. This can be useful if you have a membership site and you don’t want to give users the ability to log out. To hide admin bar for all users To hide the admin bar for certain user levels. NOTE: Remember…

    Category: WordPress

    smartsovereign

    Tags: WP Admin
  • Blur background on modal pop-up

    Blur background on modal pop-up

    This code allows you to blur the background when someone triggers a modal, it helps put focus on the modal and not the background. The blur strength can be adjusted as needed. Add this to the main style sheet.

    Category: WordPress

    smartsovereign

    Tags: CSS, Front End, Oxygen
  • Hide Errors using wp-config file

    Hide Errors using wp-config file

    Sometimes when you are in a development environment like Laravel Valet on your home computer, you may have errors show up. you can use the following code to hide them Edit wp-config.php file and add the following anywhere ini_set(‘display_errors’,’Off’); ini_set(‘error_reporting’, E_ALL ); define(‘WP_DEBUG’, false); define(‘WP_DEBUG_DISPLAY’, false);

    Category: WordPress

    smartsovereign

    Tags: WP Admin
  • Go Back Button

    Go Back Button

    This will allow you to create a button that uses the history states to go back with pure HTML. You will then have to style it to make it look as required. It is useful if you end up on checkout pages or forms that have no headers or footers and wish to give the…

    Category: Oxygen

    smartsovereign

    Tags: HTML
  • Hide Ruller in Oxygen Builder

    This allows you to hide that ruler on the bottom of the builder that often gets in the way of doing mobile responsive work. Set as CSS custom code

    Category: WordPress

    smartsovereign

  • Add Media Link To Admin Bar

    Add Media Link To Admin Bar

    This code allows you to add a link to ADD MEDIA from Admin Toolbar, because going all the way to the left and hovering over options is too much work. Set to load in Admin Area only

    Category: WordPress

    smartsovereign

    Tags: WP Admin
  • Woo: Change the No Product in cart text on the Oxy Ultimate Woo plugin

    Woo: Change the No Product in cart text on the Oxy Ultimate Woo plugin

    This is a snippet for Oxy Ultimate Woo plugin that allows you to change the default “No product in cart” to anything you like. Credit to the Developer, you can see the original code here

    Category: WordPress

    smartsovereign

    Tags: 3rd party plugins, WooCommerce
  • Woo: How to change CHECKOUT text button on Oxy Ultimate Woo Cart

    Woo: How to change CHECKOUT text button on Oxy Ultimate Woo Cart

    Fo those using Oxy Ultimate Woo Cart component, this is a snippet to change the text on the checkout button to anything you need. This is courtesy of the developer and work perfectly, see original here

    Category: WordPress

    smartsovereign

    Tags: 3rd party plugins, WooCommerce
  • Woo: Change Add to Cart to BUY NOW

    Woo: Change Add to Cart to BUY NOW

    Another little Woo Commerce polish to make your store look even more customised

    Category: WooCommerce

    smartsovereign

    Tags: WooCommerce
  • Woo : Change “Out of Stock” to SOLD OUT

    Woo : Change “Out of Stock” to SOLD OUT

    This is a quality of life improvement for an ecommerce store.

    Category: WooCommerce

    smartsovereign

    Tags: WooCommerce
  • Woo: Rename “add to cart” button if product already in cart

    Credit: https://businessbloomer.com/ for this one. Check out his website, he has hundreds of useful Woo snippets. When talking about UX, or for very specific WooCommerce shops, you might need to tell the user a product is already in the Cart before re-adding it or increasing its quantity from the Shop/Category/Loop and Single Product pages. This…

    Category: WooCommerce

    smartsovereign

    Tags: Front End, WooCommerce
  • Woo: Hide add to cart pop up

    If you set up a one page checkout on oxygen or have a sidecart, you don’t want to see this pop up, as people may click it and go to the cart page (which you want to skip altogether), this hides that pop up.

    Category: WooCommerce

    smartsovereign

    Tags: WooCommerce
  • Woo: Re-order catalogue with out of stock items last

    Credit: https://businessbloomer.com/ for this one. Check out his website, he has hundreds of useful Woo snippets. This is useful so that your customer only sees your current stock.

    Category: WooCommerce

    smartsovereign

    Tags: WooCommerce
  • Woo: Disable WooCommerce image zoom

    Woo: Disable WooCommerce image zoom

    Sometimes the zoom feature is useful, but it can also be very jarring to your customers. I prefer to have this off on every site and use a light box instead.

    Category: WooCommerce

    smartsovereign

    Tags: Must Have, WooCommerce
  • Redirect wordpress back to referring page after login

    Sometimes you have a situation where you want the customer to log in, like a donation page, but you don’t want them to end up at /my-account/ but rather be taken back to the page where they were when they started. This code is useful for donation sites, as well as refer a friend scenarios.

    Category: WordPress

    smartsovereign

    Tags: WooCommerce, WP Admin
  • Log out to home page

    Log out to home page

    This snippet is good for e-commerce stores or anywhere that customers can be logged in, it ensures they don’t see the default WordPress login page, but are instead taken to the home page.

    Category: WordPress

    smartsovereign

    Tags: Must Have, WooCommerce, WP Admin
  • Edit theme color for mobile

    Edit theme color for mobile

    This snippet allows you to style the very top of your website on a mobile device for that extra touch of professionalism. Change “#000000” to your brand colour. This is a HTML snippet.

    Category: WordPress

    smartsovereign

    Tags: Must Have, WP Admin

1 2
→

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