Skip to content

Instantly share code, notes, and snippets.

View mdmoinulhossain's full-sized avatar
🎓
Learning....

MOHAMMAD MOINUL HOSSAIN mdmoinulhossain

🎓
Learning....
View GitHub Profile
@mdmoinulhossain
mdmoinulhossain / functions.php
Created August 9, 2025 12:44
Child Theme function.php example
<?php
function my_child_theme_enqueue_styles() {
// Enqueue the parent theme stylesheet
$parent_style = 'parent-style';
wp_enqueue_style($parent_style, get_template_directory_uri() . '/style.css');
// Enqueue the child theme stylesheet
wp_enqueue_style(
'child-style',
@mdmoinulhossain
mdmoinulhossain / style.css
Created August 9, 2025 12:43
Child theme custom font add system
/*
Theme Name: Change with your theme name
Theme URI: http://yoursite.com/yourthemename-child/
Description: Change with your desired theme description
Author: Your Name
Author URI: http://example.com
Template: Change with the identical parent theme name
Version: 1.0.0
*/
@mdmoinulhossain
mdmoinulhossain / style.css
Created February 27, 2025 08:57
Prevent Horizontal Scrolling on webpage
html, body {
overflow-x: hidden;
width: 100%;
}
/**
* Change a currency symbol
*/
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'AUD': $currency_symbol = 'AUD$'; break;
}
return $currency_symbol;
@mdmoinulhossain
mdmoinulhossain / dragColumn6.html
Created December 17, 2023 18:03 — forked from gujc71/dragColumn6.html
Drag and Drop Table Columns
<!DOCTYPE html>
<html>
<head>
<title>Drag and Drop Table Columns</title>
<style>
table {
font-size: 11px;
border-collapse:collapse;
border:1px solid
}
@mdmoinulhossain
mdmoinulhossain / readme.md
Created November 3, 2023 06:05
npm create-react-app error

============================================================================================ #Problem:

Creating a new React app in D:\assignment\Anchorblock-assignment\users-stack.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
@mdmoinulhossain
mdmoinulhossain / style.css
Created January 24, 2023 04:26
Makes shadow / Reduce opacity of background Image
box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.7);
@mdmoinulhossain
mdmoinulhossain / readme.md
Created January 6, 2023 19:07
npm WARN config global --global, --local are deprecated. Use --location=global instead.

As for the actual warning, open Powershell on as an administrator and type the following commands:

$ Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force

$ npm install --global --production npm-windows-upgrade

$ npm-windows-upgrade --npm-version latest

@mdmoinulhossain
mdmoinulhossain / .htaccess
Created December 26, 2022 11:07
Redirect any website HTTP to HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
</IfModule>
@mdmoinulhossain
mdmoinulhossain / pm2.md
Created December 13, 2022 05:33
pm2 server installation

$ npm install -g pm2

$ pm2 list

$ pm2 start server.js --name "project name"

$ pm2 start/stop 0(id no.)

$ pm2 delete (id no.) -> to delete.