Skip to content

Instantly share code, notes, and snippets.

View mustafix's full-sized avatar

Mustafizur Rahman mustafix

View GitHub Profile
----------------------------------------------------------------------------------------------
Database Connection
----------------------------------------------------------------------------------------------
// Error Reporting Turn On
ini_set('error_reporting', E_ALL);
//error_reporting('0');
// Setting up the time zone
global $woocommerce;
//remove breadcrumb
remove_action('woocommerce_before_main_content','woocommerce_breadcrumb',20);
// Breadcumbs custom style(div or ul)
add_filter( 'woocommerce_breadcrumb_defaults', 'flipmart_woocommerce_breadcrumbs' );
function flipmart_woocommerce_breadcrumbs() {
return array(
1. call scrollup.js on your file
2. call css code on style.css
3. active scroll up
--------------------------------------------------------------
jQuery Script
--------------------------------------------------------------
jQuery(document).ready(function(){
// grab the initial top offset of the navigation
var sticky_navigation_offset_top = $('on your div id/class ').offset().top;
// our function that decides weather the navigation bar should have "fixed" css position or not.
@mustafix
mustafix / Archive
Last active October 31, 2017 13:08
<?php
if( is_category() ){
single_cat_title();
}elseif( is_tag() ){
single_tag_title();
}elseif( is_author() ){
the_post();
echo 'Author Archive: '.get_the_author();
rewind_posts();
}elseif( is_day() ){
<?php
<?php if () : ?>
<?php else : ?>
<?php endif; ?>
<?php echo get_template_directory_uri(); ?>
<?php the_post_thumbnail('add_image_size'); ?>
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
<?php endwhile; ?>
<?php else : ?>
<h2>404 Not Found !</h2>
<?php endif; ?>
<?php if(function_exists('wp-pagenavi')){wp-pagenavi();} else {include('navigation.php');} ?>
<div class="nav-previous">
<?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Previous Posts', 'twentyeleven' ) ); ?>
</div>
<div class="nav-next">
<?php previous_posts_link( __( 'Next Posts <span class="meta-nav">&rarr;</span> ', 'twentyeleven' ) ); ?>
</div>
<!---
উপরের কোড এর সাথে এই স্টাইল টি দিলে দেখতে সুন্দর লাগবে