All muhaza's note in developing website. Front-end & uiux method. Real life implementation for webdesigner.
Thursday, 6 October 2022
SHORTCODE Content Base on User Role/ User Log in
[member_only]User is logged in.[/member_only]
Tuesday, 28 June 2022
ENABLE USER UPLOAD ZIP
Add this on functions.php
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes=array() ) {
// add your extension to the mimes array as below
$existing_mimes['zip'] = 'application/zip';
$existing_mimes['gz'] = 'application/x-gzip';
return $existing_mimes;
}
Thursday, 14 April 2022
WP PLUGIN DEVELOPMENT
- Looking method to get data from wp-mysql
- create form to adjust wp-mysql from admin side
- connect with woocommerce
Tuesday, 12 April 2022
CUSTOM ADMIN DASHBOARD WIDGET SCREEN OPTIONS
add_action(
'wp_dashboard_setup'
,
'my_custom_dashboard_widgets'
);
function
my_custom_dashboard_widgets() {
global
$wp_meta_boxes
;
wp_add_dashboard_widget(
'custom_help_widget'
,
'Theme Support'
,
'custom_dashboard_help'
);
}
function
custom_dashboard_help() {
echo
'<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="mailto:yourusername@gmail.com">here</a>. For WordPress Tutorials visit: <a href="https://www.wpbeginner.com" target="_blank">WPBeginner</a></p>'
;
}
WP FUNCTIONS.PHP TO THE WORDPRESS PLUGIN
1. You need file manager. Download it on plugin
2. Create new folder name it anything 'my-functions'
3. Create new php file name it 'my-functions.php'
4. paste and edit code below suit with your want
<?php
/*
Plugin Name: my functions
Plugin URI: https://orkedtouch.com/wp-admin/plugin-editor.php
Description: This is my functions instead on functions.php
Author: MUHAZA
Author URI:
Version: 2022.04.13
License: GPL
*/
// add your functions below
Saturday, 9 April 2022
Fonts with specific Media Query
<link rel="stylesheet" href="styles.css" media="only screen and (max-device-width: 480px)">
<link rel="stylesheet" href="styles_mobile.css" media="only screen and (min-device-width: 480px)">Friday, 8 April 2022
HTACCESS SPEED UP OPTIMIZE SETUP
WOOCOMMERCE FLYCART
Wednesday, 23 February 2022
BASIC DHTML FRONT-END USE
Auto select after redirect to the contact page SELECT JAVASCRIPT
https://domain.my/contact/?startup_package=UltimateImpact <select name="startup_package" class="form-select"...
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 < div style = "background-color:#D94A38;width:170px;height:80px;ma...