Posts

Showing posts from February, 2018

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     ); ...