Skip to content

Instantly share code, notes, and snippets.

View Josepek's full-sized avatar

Yousef Keyghobadi Josepek

  • Rabin Intelligent Idea
  • Tehran
View GitHub Profile
@heiswayi
heiswayi / google_map.html
Last active January 26, 2023 20:56
HTML Example of Google Map with Custom Marker. Live Demo: http://codepen.io/heiswayi/pen/zGgXmR
View google_map.html
<!doctype html>
<html>
<head>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?sensor=false">
</script>
<meta charset="UTF-8">
<title>Example Google Map</title>
</head>
<body>
@jameskoster
jameskoster / functions.php
Last active November 21, 2023 11:32
WooCommerce - change number of products displayed per page
View functions.php
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );
function new_loop_shop_per_page( $cols ) {
// $cols contains the current number of products per page based on the value stored on Options -> Reading
// Return the number of products you wanna show per page.
$cols = 9;
return $cols;
}