This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wpt_query_args','wpt_custom_price_wise_sorting_fixer'); | |
/** | |
* If anybody fond that, Price wise sorting is not working for your site | |
* Need to customize product table's args | |
* using filter hook: add_filter('wpt_query_args','wpt_custom_price_wise_sorting_fixer'); | |
* ******************** | |
* wpt_query_args | |
* Very strong filter for Woo Product Table | |
* | |
* @author Ibrahim Khalil <mdibrahimk48@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add the following code in your functions.php or any plugin. | |
*/ | |
if (!function_exists('wpt_remove_taxonomy_link')) { | |
function wpt_remove_taxonomy_link() | |
{ | |
?> | |
<script> | |
jQuery(document).ready(function ($) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.select-wrap { | |
border: none !important; | |
} | |
#content .wpb_alert p:last-child, #content .wpb_text_column :last-child, #content .wpb_text_column p:last-child, .wpb_alert p:last-child, .wpb_text_column :last-child, .wpb_text_column p:last-child { | |
margin-bottom: 0px !important; | |
} | |
.wpt-wrap table tbody tr td a { | |
display: flex !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Schools Information</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label for="pick-up">Pick-up Location:</label> | |
<select id="pick-up" name="pick-up"> | |
<option value="">Select an option</option> | |
<option value="Airport Ngurah Rai">Airport Ngurah Rai</option> | |
<option value="Amed">Amed</option> | |
<!-- Add more options here --> | |
</select> | |
Selected Pick-up Location: <span id="selected-pick-up"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Author: Ibrahim Khalil | |
* Desc: Category Columnwise Sorting (On Load) on woo product table. | |
* Date: 03.08.2023 | |
*/ | |
add_action('wp_footer','wpt_custom_category_colwise_sorting_on_load'); | |
function wpt_custom_category_colwise_sorting_on_load(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Author: Ibrahim Khalil | |
* Desc: Add an extra <h2> title before mini cart on woo product table | |
* Date: 23.07.2023 | |
*/ | |
function codeastrology_product_table_mini_cart_title_include() | |
{ | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* To change product table view cart text*/ | |
function codeastrology_view_cart_text( $text ){ | |
$text = "Basket"; | |
return $text; | |
} | |
add_filter('wpt_view_cart_text', 'codeastrology_view_cart_text'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function codeastrology_product_table_thumbnails_target_link_change() | |
{ | |
?> | |
<script> | |
jQuery(document).ready(function() { | |
'Code by Ibrahim'; | |
$('a[href="https://funcolorous.co.za/product/tiles/"]').each(function() { | |
$(this).attr('target', '_self'); |
NewerOlder