Posts

Showing posts from 2015

Wi-Tribe / Qubee Extra GB (Bundle offer)

Wi-Tribe / Qubee Bundle GB Offers (When you cross GB limit) In Wi-Tribe when you exceed your GB limit , they charge you Rs. 0.10 Per MB (Rs. 102 Per GB) In Qubee when you exceed your GB limit, they don't charge you extra and internet works on reduced speed. that usage is free but slow. Wi-tribe and Qubee both giving their bundle GB offer for their customers. -- Wi-Tribe Rs. 75 = 2GB , Rs. 150 = 5GB. -- Qubee Rs.100 = 3GB , Rs. 200 = 7GB or Rs. 500 = 18GB  (Customer will not be charged even if he wont buy bundle in QUBEE as packages are AOL(Always OnLine) means no extra charge on usage even exceed limit, but speed will be reduced)

New features of Laravel 5 PHP framework

Image
Laravel is one of the highly used and appreciated coding frameworks by the PHP developers. Developers prefer Laravel over to other frameworks because of the performance, features, scalability it offers. Here we will discuss some exceptional features of Laravel that makes it the PHP Developer’s first choice. Laravel 5 was launched in November 2014. As expected, there were lots of functional changes in the Laravel 5. It was backed with 22 new features for developers. The company has upgraded the successful version of Laravel 5 in the February this year. The latest version of Laravel 5.1 is available now. Laravel 5.0.1 has restructured framework architecture in the latest release. The company has prominently simplified the Method injection. New route-caching feature has been added to Artisan. Let’s have a look over some of the most important features of Laravel 5.   New directory structure   It is a structural change that you might notice first. Laravel 5.0.1 impl

Load more posts on click using jQuery

DEMO:  https://jsfiddle.net/gmkhussain/hd4603gj/ HTML========= <h2>Load More Posts</h2> <div id="allpost"> <div class="post-box" id="hari1">              <div class="post-img col-sm-3">                             <img width="155" height="136" src="http://localhost/projects/summer-blog/wp-content/uploads/2015/12/image1-1.jpg" class="attachment-full size-full wp-post-image" alt="image1">                                                        </div>        <div class="post-content col-sm-9">             <h3>Fifth Blog Heading Goes Here</h3>                                  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque natibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec pellentesque eu pretium uis

remove span elements from Contact form 7 but keeping inside elements

//remove span elements from Contact form 7 but keeping inside elements var cf7input = $( " .wpcf7-form-control " );   if ( cf7input .parent().is( "span" ) ) {     cf7input . unwrap ();   } else {     cf7input .wrap( "<span></span>" );   jQuery('.form-group br '). remove ();   //On focus add class for animation (optional) jQuery('.form-control').focusout(function(){  var text_value=jQuery(this).val();      if(text_value!='')        { //alert(1); jQuery(this).addClass("wariya");         }else{jQuery(this).removeClass("wariya");} }); DEMO:  https://jsfiddle.net/qjw5nr7r/

How to display post featured image and content call by Post ID WordPress

<?php $post = get_post( 159 ); setup_postdata($post);?> <p><?php  the_content();?></p> <?php the_post_thumbnail(); ?>

how to create and display categories for post type in WordPress

/******services_posttype***********/ function args_ourwork_posttype(){    $args_services = array(    'labels'=> array( 'name'=>'ourwork Tab',        'singular_name'=> 'ourwork',        'menu_name'=>'ourwork',        'name_admin_bar'=> 'ourwork',        'all_items' =>'View all ourwork',        'add_new'=> 'Add New ourwork' ),    'description' =>"This post type is for ourwork",    'public' => true,    'exclude_from_search'=>false,    'publicly_queryable'=> true,    'show_ui' => true,    'show_in_menu'=> true,    'show_in_admin_bar'=> true,    'menu_position'=>6,    'capability_type'=> 'page',    'menu_icon' => get_stylesheet_directory_uri().'/images/dash-logos.png',    'supports'=> array( 'title', 'editor

Automatic Deployment Bitbucket (git) to live site

Image
Hostgator has git and svn preinstalled. This enables us to automate deployment! The end result is when you push a commit to bitbucket, the changes are automatically deployed your site… automatically. For this tutorial I will assume you have a  Bitbucket  account Your git repo already uploaded to Bitbucket sourcetree  git client managing your local git repo root access to your hostgator SSH access My bitbucket account is  bruceoutdoors , and I’ll be using a private git repo  deploy-test . Set up SSH in hostgator After you have logged in to the cpanel, use your legacy file manager and set it to home directory and show hidden files. Create a new  .ssh  folder if it has not existed. Download  PuTTy  if haven’t got it. NOTE:  To paste contents to PuTTy, right click on the terminal. Enter something like: Hostname:  gator1111.hostgator.com:1111 Port:  2222 Click “Open”. Login into hostgator with your username and password run: cd .ssh ssh-keygen We won’t be

how to display woocommerce recent products on wordpress custom page

<section id="recentProductArea"> <div class="container"> <h1>Recently Added</h1> <div class="products-area"> <?php $args = array( 'post_type' => 'product', 'stock' => 1, 'posts_per_page' => 4, 'orderby' =>'date','order' => 'DESC' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> <div class="product-box col-sm-3"> <a id="id-<?php the_id(); ?>" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.woocommerce_placeholder_img_s

Common Mistakes of Web Developers

There seems to be endless choices regarding how to accomplish the same task – to develop a website that works in today’s modern web. Web developers have to choose a web hosting platform and underlying data storage, which tools to write HTML, CSS, and JavaScript in, how design will be implemented, and what potential JavaScript libraries/frameworks to include. Once choices are narrowed down, the online world is filled with articles, forums, and samples that provide tips for making a better web experience. Yet no matter which path is taken, all developers are susceptible to mistakes. Although some mistakes will be related to a specific approach, there are challenges shared among all web developers. So through research, experience, and recent observations, I thought I would share a list I compiled of ten common mistakes I see web developers make – and how to avoid them. The following list is in no particular order. 1) Writing Old School HTML Mistake : The early days of

How to change LocalHost URL to something else, on a local system using WAMP / XAMPP server?

Step 1 Go to C:\wamp\bin\apache\Apache2.2.17\conf\ open httpd.conf file and change #Include conf/extra/httpd-vhosts.conf to Include conf/extra/httpd-vhosts.conf i.e. uncomment the line so that it can includes the virtual hosts file. Step 2 Go to C:\wamp\bin\apache\Apache2.2.17\conf\extra and open httpd-vhosts.conf file and add the following code <VirtualHost myWebsite.local> DocumentRoot "C:/wamp/www/myWebsite/" ServerName myWebsite.local ServerAlias myWebsite.local <Directory "C:/wamp/www/myWebsite/"> Order allow,deny Allow from all </Directory> </VirtualHost> change myWebsite.local and C:/wamp/www/myWebsite/ as per your requirements. Step 3 Open hosts file in C:/Windows/System32/drivers/etc/ and add the following line ( Don't delete anything ) 127.0.0.1 myWebsite.local change myWebsite.local as per your name requirements Step 4 restart your server. That&#

how to create custom post type in wordpress with or without categories

/******slider in dashboard***********/ function my_custom_sliders_posttype(){ $args = array( 'labels'=> array( 'name'=>'sliders', 'singular_name'=> 'slider', 'menu_name'=>'sliders', 'name_admin_bar'=> 'sliders', 'all_items' =>'View all sliders', 'add_new'=> 'Add New sliders' ), 'description' =>"This post type is for sliders", 'public' => true, 'exclude_from_search'=>false, 'publicly_queryable'=> true, 'show_ui' => true, 'show_in_menu'=> true, 'show_in_admin_bar'=> true, 'menu_position'=>6, 'capability_type'=> 'page', 'supports'=> array( 'title', 'editor', 'author', 'thumbnail', 'excerpt'

How to display custom page title content and thumbnail in WordPress

<?php               // Start the loop. while ( have_posts() ) : the_post(); ?>  <?php echo the_post_thumbnail('full'); ?>  <h1> <?php echo the_title(); ?>  </h1>  <p>  <?php echo the_content(); ?>  </p> <?php endwhile ?>

Basic template for wordpress child theme

HEADER.PHP <?php /**  * The template for displaying the header  *  * Displays all of the head element and everything up until the "site-content" div.  *  * @package WordPress  * @subpackage Twenty_Fifteen  * @since Twenty Fifteen 1.0  */ ?> <!DOCTYPE html> <html <?php language_attributes(); ?> class="no-js">   <head>     <meta charset="<?php bloginfo( 'charset' ); ?>"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1">     <title> <?php bloginfo('name'); ?> </title>         <link rel="icon" type="image/png" href="<

How to make Bootstrap Carousel Dynamic in WordPress

/********** functions.php***** ** ** / /******slider in dashboard***********/ function my_custom_sliders_posttype(){    $args = array(    'labels'=> array( 'name'=>'sliders',        'singular_name'=> 'slider',        'menu_name'=>'sliders',        'name_admin_bar'=> 'sliders',        'all_items' =>'View all sliders',        'add_new'=> 'Add New sliders' ),    'description' =>"This post type is for sliders",    'public' => true,    'exclude_from_search'=>false,    'publicly_queryable'=> true,    'show_ui' => true,    'show_in_menu'=> true,    'show_in_admin_bar'=> true,    'menu_position'=>6,    'capability_type'=> 'page',    'supports'=> array( 'title', 'editor', 'author', 'thumbnail',

How to call widgets for footer links in WordPress

How to call widgets on footer to WordPress NOTE:   create dynamic menu  from "wp-admin/nav-menus.php?" and call on widget <!--------------- functions.php ---------------------> //FOoter register_sidebar( array( 'name' => 'Footer Sidebar 1', 'id' => 'footer-sidebar-1', 'description' => 'Appears in the footer area', 'before_widget' => '<div class="ftr-box ftr-logo col-sm-4 ovrimg-mx">', 'after_widget' => '</div>', 'before_title' => '<h4>', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => 'Footer Sidebar 2', 'id' => 'footer-sidebar-2', 'description' => 'Appears in the footer area', 'before_widget' => '<div class="ftr-box col-sm-3">', 'after_widget' => '</div>