Skip to content

Instantly share code, notes, and snippets.

SHORTCODE -------------------
[newsletter]
[newsletter_form form="1"]
CSS -------------------------
.tnp-subscription {
margin: 0 auto;
///////////////////////// woocommerce_checkout_fields
/* This is not meant to be here, but it serves as a reference
of what is possible to be changed.
$defaults = array(
'type' => 'text',
'label' => '',
'description' => '',
'placeholder' => '',
'maxlength' => false,
ul {
list-style-type: none;
text-align: center;
}
li {
display: inline;
}
li:not(:last-child):after {
($user->is_logged_in() ? $user->get('first_name') : 'Guest')
function lista_paginas_irmas($atts) {
ob_start();
$a = shortcode_atts( array(
'id' => '',
), $atts );
global $post;
$args = array(
'post_type' => 'page',
'posts_per_page' => -1,
$posts_page_id = get_option( 'page_for_posts');
$posts_page = get_page( $posts_page_id);
$posts_page_title = $posts_page->post_title;
$posts_page_url = get_page_uri($posts_page_id );
add_action( 'init', function () {
add_ux_builder_post_type( 'custom_post_type' );
} );
/////////// Selectable Recipient with Pipes ///////////////
[select your-recipient "CEO|ceo@example.com"
"Sales|sales@example.com"
"Support|support@example.com"]
[_raw_{field name}] ( ex:[_raw_your-recipient] )
////////// listar estados ///////////
[select* estado include_blank "Acre" "Alagoas" "Amapá" "Amazonas" "Bahia" "Ceará" "Distrito Federal" "Espírito
//// FORM ////
[dynamichidden titulo-pagina "CF7_get_post_var key='title'"]
[dynamichidden url-pagina "CF7_URL"]
//// MAIL ////
[titulo-pagina]
[url-pagina]
$(window).ready(function () {
/*botão fixo*/
$(document).bind('load scroll', function () {
var hT = $('#clear-footer').offset().top,
hH = $('#clear-footer').outerHeight(),
wH = $(window).height(),
wS = $(this).scrollTop();
if (wS > (hT + hH - wH)) {
$('#float-btn').removeClass('btn-fixed');