Main Media Quires for Bootstrap

/*================================================== = Bootstrap 3 Media Queries = ==================================================*/ /*========== Mobile First Method ==========*/ /* Custom, iPhone Retina */ @media only screen and (min-width : 320px) { } /* Extra Small Devices, Phones */ @media only screen and (min-width : 480px) { } /* Small Devices, Tablets */ @media only screen and (min-width : 768px) {…

Blog Page Template

‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1)); ?> have_posts()) : ?> have_posts()) : $wpb_all_query->the_post(); ?> ID)); $file_headers = @get_headers($file); if ($file_headers[0] == ‘HTTP/1.1 404 Not Found’) { $exists = false; } else { $exists = true; } if (has_post_thumbnail() && $exists) { ?> <a title="” href=””> <img src="” class=”img-responsive”> <a href="”> <a href="”>Read More!

CPT With Texonimy

/** custom post type * */ // Our custom post type function /* * Creating a function to create our CPT */ /* function custom_post_type() { // Set UI labels for Custom Post Type $labels = array( ‘name’ => _x(‘Products’, ‘Post Type General Name’, ‘twentythirteen’), ‘singular_name’ => _x(‘Product’, ‘Post Type Singular Name’, ‘twentythirteen’), ‘menu_name’ =>…

how to show Woo Commerce Categories

$taxonomy = ‘product_cat’; $orderby = ‘name’; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hierarchical = 1; // 1 for yes, 0 for no $title = ”; $empty = 0; $args = array( ‘taxonomy’ => $taxonomy, ‘orderby’ => $orderby, ‘show_count’ => $show_count, ‘pad_counts’…

How to Show Woo Commerce Categories & There Products

$args = array( ‘number’ => $number, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘hide_empty’ => $hide_empty, ‘include’ => $ids ); $product_categories = get_terms( ‘product_cat’, $args ); $count = count($product_categories); if ( $count > 0 ){ foreach ( $product_categories as $product_category ) { echo ‘ ‘; echo ‘ ‘ . $product_category->name . ‘ ‘; $args = array(…

How to access Xampp from External IP

Add this code in goto you xampp folder for eg: D:\xampp\apache\conf\extra open httpd-xampp.conf and add this code end of the file and restart your server. <LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”> Order deny,allow #Deny from all Allow from ::1 127.0.0.0/8 ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </LocationMatch>

How to Add Costume Post type In WordPress

WordPress can hold and display many different types of content. A single item of such a content is generally called a post, although post is also a specific post type. Internally, all the post types are stored in the same place, in the wp_posts database table, but are differentiated by a column called post_type. text_domain…

Laravel 5 File Upload With data

Laravel 5 is easy to use file upload is very easy to learn here is the code comment to more improvement. In Your Views {!! Form::open( array( ‘route’ => ‘your path’, ‘class’ => ‘form’, ‘novalidate’ => ‘novalidate’, ‘files’ => true)) !!} {!! Form::text(‘name’, null, array(‘placeholder’=>’ Title’, ‘class’=>’form-control’)) !!} {!! Form::text(‘price’, null, array(‘placeholder’=>’Price’, ‘class’=>’form-control’)) !!} {!!…

Image batching in php

Image Catching in php simple method. <?php $im = imagecreatefrompng(“bmarker.png”); // img you chose //The numbers are the RGB values of the color you want to use //$textcolor = imagecolorallocatealpha($im,255,255,255,127); $textcolor = imagecolorallocate($im, 0, 0, 0); // 4 peratmenter text color on image you want //The canvas’s (0,0) position is the upper left corner //So…

Toggle function left to right

<html> <div class=”pollSlider”> Text Goes Here </div> <!– close –> <div id=”pollSlider-button”>Button</div> </html> <java> $(document).ready(function(){ var slider_width = $(‘.pollSlider’).width();//get width automaticly $(‘#pollSlider-button’).click(function() { if($(this).css(“margin-right”) == slider_width+”px” && !$(this).is(‘:animated’)){ $(‘.pollSlider,#pollSlider-button’).animate({“margin-right”: ‘-=’+slider_width});}¬†else¬†{ if(!$(this).is(‘:animated’))//perevent double click to double margin { $(‘.pollSlider,#pollSlider-button’).animate({“margin-right”: ‘+=’+slider_width}); } } }); }); </java> <css> .pollSlider{position: fixed;height: 100%;background: #003471;width: 200px;right: 0px;margin-right: -200px; height: 700px; top:…