• 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 –…

  • 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.

  • 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,…

  • 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/

  • 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…

  • Add text after price

    Add text after price

    Sometimes is usefull to add additional text under the product price. With this hook you can easily show additional text just under the price. You can use ScriptOrganiser, CodeSnippets or any other similar plugin. This hook could be extended to show message only on specific products. In this case you will need to add ID’s…

  • 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 🙂

  • Oxygen Hook. Add code after body is opened

    Oxygen Hook. Add code after body is opened

    Oxygen does not support WordPress wp_body_open() and if you need to integrate Google Tag manager it requires two code parts. 1st part is Inside Head and 2nd is inside Body. Lucky Oxygen provides hook that is called: ct_before_builder. If you are using Scripts Organizer , Code Snippets or any other functionality plugins this script will…

  • Scroll Progress Bar in Oxygen under 2 minutes

    Scroll Progress Bar in Oxygen under 2 minutes

    This technique requests Scripts Manager feature by Swiss Knife or Scripts Organizer to quickly import a script. Register Script We will start by going into Script Manager feature and paste CDN link or Upload it to media library to store it on our server. Give it a name, Script Type set as JavaScript, Location for…

  • Add Dropdown Pages Links to WordPress Admin Bar

    Add Dropdown Pages Links to WordPress Admin Bar

    With this script you will have quick access to all the pages right from WordPress Admin Bar Scripts Organizer Settings Code

  • Live Reload with Scripts Organizer

    Live Reload with Scripts Organizer

    We all hate switching between browsers, save, switch, reload. This is a nice workaround until we create it as a build-in feature. Set it between 1500 ( 1,5 sec ) and 3. Less is too fast and if set as more you will wait too much. Set it as Conditions > Header and activate Exclude…

  • YouTube Shortcode with lazy load video and scripts on click

    YouTube Shortcode with lazy load video and scripts on click

    Current problem is if you embed youtube in WordPress it’s going to load a bunch of scripts that will dramatically increase a load time. With this approach scripts and video will be loaded only after user clicks on video thumbnail. Shortcode usage To use shortcode wrap “yt” and “id=yourid” in backets [] You don’t need…

  • Page, Post, and CPT ID in Admin columns

    Page, Post, and CPT ID in Admin columns

    From time to time you need to set up a bunch of conditions with Oxygen Builder that requires Page or Posts ID numbers. To get them you need to open every page or post and find it under URL. Much easier is to get numbers directly inside Admin Columns so you don’t need to open…

  • Add link inside WP-Admin topbar

    Usually, some common settings are hidden under submenus and several clicks. To be efficient I need to have them in 1 or 2 clicks and highlighted. That’s why I made this small code snippet to add links and coloring for each menu item. Single menu item Multiple menu items Code Implementation Open Scripts Organizer. Code…

  • WordPress Admin Dark Theme

    WordPress Admin Dark Theme

    WordPress sadly only have “Light mode”. If you have problem with that hard contrast and big light screen you need to install heavy plugins that only bloats your server and admin resources. Scripts Organizer Setup Select admin only condition. With that option CSS will be served only to the logged in users. Use PHP Block…

  • Scripts on Excluded pages

    Scripts on Excluded pages

    At the moment we have option to select pages on which you want to apply scripts. Thats why I made a small code snippet to help you create this option as well. Write Page, Post ID or Slug on witch pages you don’t want that script is applied and it will be applied on all…

  • Modify or Disable Heartbeat API Without Plugin

    Modify or Disable Heartbeat API Without Plugin

    In 2013 WordPress introduces Heartbeat API – a feature that allows your browser to automatically communicate with the server. However, there are a couple of drawbacks to this feature. If you use a shared hosting plan, you need to take a closer look at the CPU usage of your server. That’s because some hosting companies might suspend your account…

  • Widget Title change h2 to h4

    Widget Title change h2 to h4

    WordPress Widgets by default have titles as h2 tag. if you need to change them to something else it is easy to change ti with WordPress filter. Add Code Snippet Open Scripts Organizer Hit Add new. Scripts Organizer Settings Trigger Location: EverywhereScript Location: PHP

  • Remove the “Archive” prefix

    Remove the “Archive” prefix

    If you are using archive pages you will get prefixes such as “Archive:”, “Category:”. Easiest way to remove them is to use WP Filter. Add Code Snippet Open Scripts Organizer Hit Add new. Scripts Organizer Settings Trigger Location: EverywhereScript Location: PHP

  • Color Admin Menu Items

    Color Admin Menu Items

    The easiest way to organize Admin Menu is to add specific colors to it.I personally like to color items I use daily. Code Snippet Add Code Snippet Open Scripts Organizer Hit Add new. Scripts Organizer Settings Trigger Location: EverywhereScript Location: PHP How to find plugin target to write CSS? Hover over item you want to find info and…