Skip to content

Instantly share code, notes, and snippets.

View anubhavbhatt's full-sized avatar
🎯
Focusing

Anubhav Bhatt anubhavbhatt

🎯
Focusing
View GitHub Profile
@anubhavbhatt
anubhavbhatt / cta.php
Last active September 3, 2019 09:13
Phone number CTA Link
<?php
$contact_number = "(123) 456-7890";
$contact_number_link = preg_replace('/\D+/', '', $contact_number);
?>
<a href="tel://<?php $contact_number_link; ?>" target="_self">
<span>CALL US 24/7<br><strong><?php $contact_number?></strong></span>
</a>
@anubhavbhatt
anubhavbhatt / footer.php
Created September 4, 2019 09:06
Notification Scroll Bar Wordpress with Cookie
@anubhavbhatt
anubhavbhatt / countdown.css
Created December 12, 2019 14:01
jQuery Countdown Script
body {
background: #20262E;
padding: 20px;
font-family: Helvetica;
font-size: 30px
}
div.column-3 {
width: 30%;
display: inline;
@anubhavbhatt
anubhavbhatt / copy-attachement.php
Created January 16, 2020 18:24
Copy the attachment of one WP to another WP
<?php
$servername = "YOUR_SERVER_NAME";
$username = "YOUR_USERNAME";
$password = "YOUR_PASSWORD";
// Create connection
$conn = mysqli_connect($servername, $username, $password);
// Check connection
if (!$conn) {