Skip to content

Instantly share code, notes, and snippets.

View jashimcse's full-sized avatar

jashimcse jashimcse

View GitHub Profile
@jashimcse
jashimcse / Wordpress Php Functions
Last active June 2, 2022 14:09
public properties
index.php file task
<a><img src="<?php echo get_template_directory_uri() ?>/assets/images/twitter-blue-icon.png"></a>
for nav
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-1',
'menu_id' => 'primary-menu',
@jashimcse
jashimcse / css
Last active June 1, 2022 14:30
Bootstrap 5 index.html
*{
padding: 0;
margin: 0;
}
/* ==========================================================================
#Desktop
========================================================================== */
/* ==========================================================================
#header_top
AWS Cloudfront instalation
In this code I share the two policies that need to be used to setup the S3 bucket properly.
1) This policy is applied on the S3 bucket to enable public access:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
@jashimcse
jashimcse / gist:0457b31f18d7405df742fb85210f7760
Created March 21, 2020 04:51
Remove virus without using antivirus
Go to CMD PROMPT Run as a administrator\
write:sfc/scannow
enter
@jashimcse
jashimcse / keep this code:Function.php
Created November 20, 2018 18:58
WordPress admin site email be updated without the email confirmation:
remove_action( 'add_option_new_admin_email', 'update_option_new_admin_email' );
remove_action( 'update_option_new_admin_email', 'update_option_new_admin_email' );
/**
* Disable the confirmation notices when an administrator
* changes their email address.
*
* @see http://codex.wordpress.com/Function_Reference/update_option_new_admin_email
*/
function wpdocs_update_option_new_admin_email( $old_value, $value ) {
define('WP_HOME','http://localhost/automov');
define('WP_SITEURL','http://localhost/automov');
chnage to
define('WP_HOME','http://facebook.com');
define('WP_SITEURL','http://facebook.com');
@jashimcse
jashimcse / Data insert wordPress by using template
Created September 7, 2018 04:30
Data insert WordPress by using template.Form data insert
<?php
/**
* Template Name: product-page.
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header();
@jashimcse
jashimcse / html (Media Query)
Last active August 1, 2018 06:18
Media Query(Bootstrap)
/* XL Device :1200px. */
@media (min-width: 1200px) and (max-width: 1500px) {
}
/* LG Device :992px. */
@media (min-width: 992px) and (max-width: 1200px) {