Showing posts with label WordPress. Show all posts
Showing posts with label WordPress. Show all posts

Tuesday, 21 August 2018

undefined undefined

Continue Shopping To Redirect Category Page Woocommerce

There is no functionality provide WooCommerce to retrieve last category page viewed. But, I solved.First create a custom action, check if page is category page, and set Cat ID to session data if so. Then on your button, use this to get proper URL.add_action( 'init', 'wp_check_product_cat_sess');function wp_check_product_cat_sess(){   ...

Monday, 20 August 2018

undefined undefined

Response video embeds in WordPress

 <?php//Add Response code to video embeds in WordPressfunction full_width_embed_html( $html ){  return '<div class="video-container">' . $html . '</div>';}add_filter( 'embed_oembed_html', 'full_width_embed_html', 10, 3 );add_filter( 'video_embed_html', 'full_width_embed_html' );?><style>...

Thursday, 2 August 2018

undefined undefined

Wordpress Interview Questions Answers

Normal 0 false false false EN-US X-NONE X-NONE ...

Saturday, 21 July 2018

undefined undefined

Category Ajax Filter Dropdown WordPress

/*Single category ajax filter dropdown example, Please Subscribe Our Blog And Comment*/ <div class="vh-filter">  <label class="label-cate">Filter By Category</label>  <select class="game-select-category" data-taxonomy="game-category">          ...

Tuesday, 17 July 2018

undefined undefined

Device Check / Mobile Detect PHP

Download Library From : http://aksolution.co.nf/wp-content/uploads/2018/07/Mobile-Detect.zip require_once ‘Mobile-Detect/Mobile_Detect.php’; //include library file path $detect = new Mobile_Detect; $deviceType = ($detect->isMobile() ? ($detect->isTablet() ? ‘tablet’ : ‘phone’) : ‘computer’); //...
undefined undefined

Add Custom Fields To Woocommerce Products Single Page, Cart Page, Checkout Page, Order Detaile And Save To Database

<?php //add custom fields to WooCommerce products Single Page, Cart Page, Checkout Page, Order Detaile And Save To Database Table Name "wp_woocommerce_order_itemmeta" add_action( 'woocommerce_before_add_to_cart_button', 'add_fields_before_add_to_cart' );function add_fields_before_add_to_cart(){ ?>  ...

Tuesday, 26 June 2018

undefined undefined

Set A Featured Image By Image URL

<?php$image_url        = $_POST['imageUrl']; $image_name       = basename($image_url);$upload_dir       = wp_upload_dir();$image_data       = file_get_contents($image_url);$genrate_unique_file_name...

Thursday, 14 June 2018

undefined undefined

DropDown with multiple with open select option

//Multiple Select Drop Down Code <div class="multiselect" id="multiple">     <?php     global $wpdb;     $getid= $_GET['id'];     $sql11 = "SELECT * FROM TABLENAME WHERE id = '$getid'";     $result11 = $wpdb->get_results($sql11);     $count1 =...

Thursday, 3 May 2018

undefined undefined

Wordpress Bootstrap Navwalker Menu

  <div class="navbar-header">  <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">    <span class="sr-only">Toggle navigation</span>    <span class="icon-bar"></span>   ...
undefined undefined

General Settings For Wordpress Admin

  <?php /*create theme options in admin wordpress*/ function add_general_settings_menu() {     add_menu_page("General Settings", "General Settings", "manage_options", "general-settings", "general_settings_page", null, 99); } add_action("admin_menu", "add_general_settings_menu"); function...

Thursday, 26 April 2018

undefined undefined

Easy OwlCarousel Slider Demo PHP/WordPress

Easy Slider Example with OwlCarousel Like :: Testimonial,Slider, ect. :: Download the Js and Css Also from the OwlCarousel Website - with require jquery js file. <link rel="stylesheet" href="../owlcarousel/owl.carousel.css"> <link rel="stylesheet" href="../owlcarousel/owl.theme.default.css"> <script...