Skip to content

Instantly share code, notes, and snippets.

@sajjadalis
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
<?php
// 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: https://www.awesomescreenshot.com/video/15190094?key=57963af0866dd6735c54786722d4d6c3
function wpgsv__get_map_after_post_content( $content ) {
@sajjadalis
sajjadalis / index.html
Created February 25, 2023 19:31
Text Rotate with Typing effect
<!DOCTYPE html>
<html lang="en">
<head>
<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>
</head>
<body>
<h1 style="text-align: center">