Similar Posts
WordPress register style and WordPress enqueue style
Where ‘style-woocommerce’ is the ID of your stylesheet and get_stylesheet_directory_uri().’/style-woocommerce.css’ is your .css DIR. wp_register_style( 'style-woocommerce', get_stylesheet_directory_uri().'/style-woocommerce.css' ); wp_enqueue_style( 'style-woocommerce' ); Function below is for woocommerce page css only. This will show on woocommerce pages else is not. add_action( 'wp_enqueue_scripts','home_scripts' ); function home_scripts(){ If( is_shop() || is_product_category() || is_product() ){ wp_register_style( 'style-woocommerce', get_stylesheet_directory_uri().'/style-woocommerce.css' ); wp_enqueue_style(…
Add first and last class on your widget sidebar.
function widget_first_last_classes($params) { global $my_widget_num; $this_id = $params[0]['id']; $arr_registered_widgets = wp_get_sidebars_widgets(); if(!$my_widget_num) { $my_widget_num = array(); } if(!isset($arr_registered_widgets[$this_id]) || !is_array($arr_registered_widgets[$this_id])) { return $params; } if(isset($my_widget_num[$this_id])) { $my_widget_num[$this_id] ++; } else { $my_widget_num[$this_id] = 1; } $class = 'class="widget-' . $my_widget_num[$this_id] . ' '; if($my_widget_num[$this_id] == 1) { $class .= 'first '; } elseif($my_widget_num[$this_id] == count($arr_registered_widgets[$this_id]))…
WordPress Post / Page visual editor missing.
Just simply go to your WordPress profile and ENABLE / DISABLE the settings. Please image below.
INSTALL WORDPRESS THEME | WEB DEVELOPMENT | HOW TO CREATE A WEBSITE
INSTALL WORDPRESS THEME | WEB DEVELOPMENT | WEBSITE | XAMP | HOW TO CREATE A WEBSITE. EDUCATIONAL VIDEO PARA SA GUSTO TUMUKLAS NG MGA BAGONG KAALAMAN KUNG PANU GUMAWA NG WEBSITES. PAKI-SHARE PO VIDEO NG MARAMI TAYONG MATULUNGAN AT MABIGYAN NG ONLINE SKILLS. MARAMI PA TAYONG PWEDE IBAHAGI SA INYO. LINKS: PERSONAL WEBSITE: https://www.anthonypagaycarbon.com/ XAMP…
Add Woocommerce product featured image using GeneratePress WordPress theme
Add Woocommerce product featured image using GeneratePress WordPress theme in few steps. You need to access your functions.php. Either on a parent theme or a child theme. In my case I’m using a child theme so gonna paste the codes below on child themes functions.php Please copy the code below and paste it into your…
How to fix ajax POST /wp-admin/admin-ajax.php 500 (Internal Server Error)?
How to fix ajax POST /wp-admin/admin-ajax.php 500 (Internal Server Error)? I’m receiving this error in console when I’m about to call my ajax code backend. It appears to me that I am missing global variable in enable the code to work. See the wrong and correct coding below. It might be not the same issue…


Many thanks if you are so kind to fairly share this information.