What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-07 06:19:13
wp_enqueue_script
function wpdocs_theme_name_scripts() { wp_enqueue_style( 'style-name', get_stylesheet_uri() ); /* enqueues style.css */ /* if you want to enqueue other styles use: */ /* wp_enqueue_style( 'style-name', get_template_directory_uri() . '/css/your... Add solution -
Other 2021-11-06 16:54:23
add_meta_box
/** * Calls the class on the post edit screen. */ function call_someClass() { new someClass(); } if ( is_admin() ) { add_action( 'load-post.php', 'call_someClass' )... Add solution -
Html 2021-11-06 12:54:18
html static widget code
// Step 1 function codepotent_display_static_dashboard_widget() { ?> <div style="display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fit,minmax(48%,1fr));grid-template-rows:1fr;grid-gap:20px;"> &... Add solution -
Other 2021-11-05 23:15:16
wordpress enqueue scripts and styles
/** * Proper way to enqueue scripts and styles */ function wpdocs_theme_name_scripts() { wp_enqueue_style( 'style-name', get_stylesheet_uri() ); wp_enqueue_script( 'script-name', get_template_dir... Add solution -
PHP 2021-11-05 19:20:22
Show Custom Input Field @ WooCommerce Single Product Page
/** * @snippet Add input field to products - WooCommerce * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogl... Add solution -
Javascript 2021-11-05 07:44:08
remove jquery migrate from wp site
Removing jQuery migrate from WordPress is quite easy. You just need to add the following lines of code to your theme’s functions.php file. //Remove JQuery migrate function remove_jquery_migrate( $scripts ) { if ( ! is_admin() && isset... Add solution -
Javascript 2021-11-03 19:32:10
hoverintent.min.js wordpress error
// Solution to confliction of jquery with seo plugin - Backend Side function webslaw_hoverintent_reload() { wp_deregister_script('hoverIntent'); wp_register_script('hoverIntent', ( 'https://cdnjs.cloudflare.com/ajax/libs/jquery.hoverintent/1.10.1... Add solution
Best helpers
Ranking is empty