This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
var GreetingAll = jQuery("#GreetingAll").val(); | |
jQuery("#PleasePushMe").click(function(){ jQuery.ajax({ | |
type: 'POST', | |
url: my_ajax_script.ajaxurl, | |
data: { | |
action: 'get_my_option', | |
GreetingAll: GreetingAll, | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
comment_form( $args ); | |
$args = array( | |
'fields' => apply_filters( | |
'comment_form_default_fields', array( | |
'author' =>'<p class="comment-form-author">' . '<input id="author" placeholder="Your Name (No Keywords)" name="author" type="text" value="' . | |
esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />'. | |
'<label for="author">' . __( 'Your Name' ) . '</label> ' . | |
( $req ? '<span class="required">*</span>' : '' ) . | |
'</p>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- loop page --> | |
<div id="content" role="main"> | |
<nav class="woocommerce-breadcrumb" > | |
<a class="home" href="http://localhost/woocommerce">Home</a> / Shop | |
</nav> | |
<h1 class="page-title">Shop</h1> | |
<p class="woocommerce-result-count"> | |
Showing all 4 results</p> | |
<form class="woocommerce-ordering" method="get"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// remove all style for woocommerce template | |
define('WOOCOMMERCE_USE_CSS', false); | |
//woocommere custom looping | |
<section id="recent"> | |
<h1>Recently Added</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function ($) { | |
$(".scroll").click(function (event) { | |
event.preventDefault(); | |
$('html,body').animate({scrollTop: $(this.hash).offset().top}, 1200); | |
}); | |
}); | |
/** | |
* @uses : have to add .scroll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_shortcode('em_vedio',function($atts){ | |
$atts = shortcode_atts(array( | |
'firstname' => 'Hasanuzzaman', | |
'lastname' => 'Shozib', | |
'tilte' => 'Just for testing title' | |
),$atts,'em_vedio'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$query = sprintf("SELECT * | |
FROM `product` | |
WHERE `id` | |
IN ( SELECT `product_id` FROM `customar_product` WHERE `user_id`='%d' )", $_GET['id']); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID']; | |
$template_file = get_post_meta($post_id, '_wp_page_template', TRUE); | |
if ($template_file == 'welcome.php') { | |
ot_register_meta_box( $home_page_meta_box ); | |
} | |
/* ------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************************* | |
SPEED UP WORDpRESS SITE | |
************************* | |
1. IDENTIFY PLUGINS THAT ARE SLOWING YOU DOWN | |
https://wordpress.org/plugins/p3-profiler/ | |
Use this plugins for showing how to sepped up. | |
2.Enable Gzip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
Enable Gzip Compression | |
***/ | |
.htaccess code | |
.............. | |
***Start Bellow **** | |
AddOutputFilterByType DEFLATE text/plain |