Skip to content

Instantly share code, notes, and snippets.

@andrastudio
andrastudio / suki-css.css
Created November 8, 2019 11:51
Suki WordPress theme grid layout adjustment
.suki-loop-grid .entry-wrapper {
position: relative;
background-color: #fff;
box-shadow: 0 5px 35px rgba(50, 50, 93, 0.1);
}
.suki-loop-grid .entry-wrapper {
border-radius: 5px;
}
li.menu-item.highlight a,
.sticky .site-navigation ul li.menu-item.highlight a {
background-color: #541388;
color: #ffffff;
padding: 7px 8px !important;
border-radius: 5px;
margin-left: 15px;
}
li.menu-item.highlight a:hover {
<form action="//postoffice.kempein.com/subscribe" target="_blank" method="post" accept-charset="utf-8">
<div class="form-group">
<label for="name">'. __('Your Name', 'poolhero') .'</label>
<input type="text" name="name" id="name"/>
</div>
<div class="form-group">
<label for="email">'. __('Email', 'poolhero') .'</label>
<input type="email" name="email" id="email"/>
</div>
<input type="hidden" name="list" value="HBYz0cg3ln763hAXUbZ6RAVg"/>
@andrastudio
andrastudio / wa.php
Last active November 8, 2019 11:53
wassenger API via curl
$data = array("phone" => "+6281290004782", "message" => "Hai pak, apa kabar?");
$data_string = json_encode($data);
$ch = curl_init('https://api.wassenger.com/v1/messages');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Token: your-api-token',
@andrastudio
andrastudio / custom.css
Last active April 19, 2018 08:31
Buat tampilan produk di mobile device pada theme Cepatlakoo menjadi 1 produk per kolom
@media screen and (max-width: 480px) {
.woocommerce #products-area ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce-page[class*=columns-] ul.products li.product,
.woocommerce[class*=columns-] ul.products li.product,
.woocommerce #products-area ul.products li.product,
#main #contentarea .related.products ul.products li.product,
.woocommerce ul.products.column-4 li.product,
.woocommerce ul.products.column-4 li.product:nth-child(3n+3) {
@andrastudio
andrastudio / facebook-page-like-auto-invite.js
Created May 3, 2017 04:07
Auto Invite People Who Have Liked a Post in Your Facebook Page
var buttons;
buttons = document.getElementsByClassName('_42ft');
for (var i = 0; i < buttons.length; i++) {
if(buttons[i].getAttribute('ajaxify') != null){
if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){
buttons[i].click();
}
}
}
@andrastudio
andrastudio / smb.conf.template
Created November 7, 2016 12:52
Samba Configuration Template
[global]
netbios name = |NAME|
display charset = |CHARSET|
interfaces = |INTERFACES|
server string = |DESCRIPTION|
unix charset = |CHARSET|
workgroup = |WORKGROUP|
browseable = yes
deadtime = 30
domain master = yes
<?php
/**
* Plugin installation and activation for WordPress themes.
*
* Please note that this is a drop-in library for a theme or plugin.
* The authors of this library (Thomas, Gary and Juliette) are NOT responsible
* for the support of your plugin or theme. Please contact the plugin
* or theme author for support.
*
* @package TGM-Plugin-Activation
@andrastudio
andrastudio / vc-fonts.php
Created September 19, 2016 02:07
Add new google fonts to Visual Composer Custom Heading
if ( ! function_exists( 'helper_vc_fonts' ) ) {
function helper_vc_fonts( $fonts_list ) {
$poppins->font_family = 'Poppins';
$poppins->font_types = '300 light regular:300:normal,400 regular:400:normal,500 bold regular:500:normal,600 bold regular:600:normal,700 bold regular:700:normal';
$poppins->font_styles = 'regular';
$poppins->font_family_description = esc_html_e( 'Select font family', 'helper' );
$poppins->font_style_description = esc_html_e( 'Select font styling', 'helper' );
$fonts_list[] = $poppins;
return $fonts_list;
@andrastudio
andrastudio / Envato Link.html
Last active June 16, 2020 00:43
Envato Buy Now Link to Checkout Page