Skip to content

Instantly share code, notes, and snippets.

sajjadalis / functions.php
Last active March 1, 2023 09:10
Create Dynamic Street Map at the end of each post via WP Google Street View plugin and ACF plugin
// Create 2 advanced custom fields for coordinates (latitude and longitude values).
// Add this code inside theme functions.php file.
// These are the optional parameters which can be included in this shortcode. (width, height, zoom, type)
// Complete shortcode example. [wpgsv_map lat=“VALUE” lng=“VALUE” width=“90%” height=“500px” zoom=“10” type=“street"]
// Demo:
function wpgsv__get_map_after_post_content( $content ) {
sajjadalis / index.html
Created February 25, 2023 19:31
Text Rotate with Typing effect
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Text Rotate with Typing effect</title>
<h1 style="text-align: center">