Posts

product title with same space every product ecommerce using css

overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 60px;

Custom Breadcurms without plugin in wordpress

/* Custom Breadcurms  */ //wordpress custom breadcrumbs without plugin // start ft_custom_breadcrumb function ft_custom_breadcrumbs(array $options = array() ) { // default values assigned to options $options = array_merge(array(         'crumbId' => 'nav_crumb', // id for the breadcrumb Div 'crumbClass' => 'nav_crumb', // class for the breadcrumb Div 'showOnHome' => 1,// 1 - show breadcrumbs on the homepage, 0 - don't show 'delimiter' => ' &gt; ', // delimiter between crumbs 'homePageText' => 'Home', // text for the 'Home' link 'showCurrent' => 1, // 1 - show current post/page title in breadcrumbs, 0 - don't show 'beforeTag' => '<span class="current">', // tag before the current breadcrumb 'afterTag' => '</span>', // tag after the current crumb 'showTitle'=> 1 // showing p...

adding text block via customizer wordpress

Add a New Panel, Section, Setting and Control for the Customizer <?php add_action( ' customize_register ' , ' genesischild_register_theme_customizer ' ); /* * Register Our Customizer Stuff Here */ function genesischild_register_theme_customizer ( $wp_customize ) { // Create custom panel. $wp_customize -> add_panel( ' text_blocks ' , array ( ' priority ' => 500 , ' theme_supports ' => ' ' , ' title ' => __( ' Text Blocks ' , ' genesischild ' ), ' description ' => __( ' Set editable text for certain content. ' , ' genesischild ' ), ) ); // Add Footer Text // Add section. $wp_customize -> add_section( ' custom_footer_text ' , array ( ' title ' => __( ' Change Footer Text ' , ' genesischild ' ), ' panel ' => ' text_blocks ' , ' ...

Integrate Bulk SMS APIs Gateway with PHP

<?php     /*Send SMS using PHP*/            //Your authentication key     $authKey = "YourAuthKey";         //Multiple mobiles numbers separated by comma     $mobileNumber = "9999999";         //Sender ID,While using route4 sender id should be 6 characters long.     $senderId = "102234";         //Your message to send, Add URL encoding here.     $message = urlencode("Test message");         //Define route     $route = "default";     //Prepare you post parameters     $postData = array(         'authkey' => $authKey,         'mobiles' => $mobileNumber,         'message' => $message,         'sender' => $senderId,         'route' => $route     ); ...

specific text change by jquery

<script>    jQuery(document).ready(function($){   $(".review-link").text(function () {     return $(this).text().replace("customer reviews", "reviews"); }); }); </script>

how to use number captcha using jquery-captcha-basic

https://github.com/pemre/jquery-captcha-basic

appointment time in dropdown with 15 min slot in php

<?php   $a=explode(',','10:00-11:45, 17:00-19:00'); $count_arr=count($a); $s=array(); for($i=0;$i<$count_arr;$i++) {     $stime=explode('-',$a[$i]);     $s=array_merge($s,$stime); } ?> <?php   $scount=count($s); ?> <select style="width:85px;" name="select1" id="select1">     <?php for($t=0;$t<$scount;$t++){     $start = strtotime($s[$t]);     $t++;     $end   = strtotime($s[$t]);     for($i = $start;$i<$end;$i+=900){         ?>     <option value='<?php echo date('G:i', $i); ?>'><?php echo date('G:i', $i); ?></option>;         <?php     } }         ?> </select>