Skip to content

Instantly share code, notes, and snippets.

View elara-contact-form
<div class="row">
<div class="col-sm-4">
<div class="form-group">
<label class="form-label">Name <span class="asterik">*</span></label>
[text* full-name class:form-control placeholder "Full Name"]
</div>
<div class="form-group">
<label class="form-label">Email Address <span class="asterik">*</span></label>
[email* email class:form-control placeholder "Email Address"]
</div>
View kale-contact-form
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="form-label">Name <span class="asterik">*</span></label>
[text* full-name class:form-control placeholder "Full Name"]
</div>
<div class="form-group">
<label class="form-label">Email Address <span class="asterik">*</span></label>
[email* email class:form-control placeholder "Email Address"]
</div>
@lyrathemes
lyrathemes / sirius-cta-contact-form
Created Feb 27, 2017
Sirius - CTA Contact Form
View sirius-cta-contact-form
<div class="row">
<div class="col-sm-6 form-group">
<div class="label-floating">
<label class="form-label">Your Full Name</label>[text full_name class:form-control-line]
</div>
</div>
<div class="col-sm-6 form-group">
<div class="label-floating">
<label class="form-label">Your Email Address</label>[email* email_address class:form-control-line]
</div>
View kale-child-theme-functions
<?php
add_action( 'wp_enqueue_scripts', 'kale_child_enqueue_styles' );
function kale_child_enqueue_styles() {
$parent_style = 'kale-style';
$deps = array('bootstrap', 'bootstrap-select', 'font-awesome', 'owl-carousel');
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' , $deps);
wp_enqueue_style( 'kale-style-child', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') );
}
View vega-pro-child-functions
<?php
add_action( 'wp_enqueue_scripts', 'vega_child_enqueue_styles' );
function vega_child_enqueue_styles() {
$parent_style = 'vega-wp-style';
$deps = array('bootstrap', 'font-awesome', 'bootstrap-social');
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' , $deps);
$vega_wp_color_stylesheet = vega_wp_get_option('vega_wp_color_stylesheet');
if($vega_wp_color_stylesheet != 'Custom')
View vega-parts-frontpage-cta-dark.php
<?php
/**
* The template part for displaying the dark CTA section on the front page (static)
*
* @package vega
*/
?>
<?php
global $vega_wp_curr_bg, $vega_wp_prev_bg;
View vega-open-content
<p class="text-center">The form on the right was created using the <a href="https://wordpress.org/plugins/contact-form-7/" target="_blank">Contact Form 7</a> plugin.</p>
<p class="text-center">On the left, we embedded the Google Maps code and wrapped it with <code>&lt;div class="map"&gt;&lt;/div&gt;</code></p>
<p>&nbsp;</p>
<div class="row">
<div class="col-md-7">
<h4>Directions</h4>
<div class="map">[googlemaps https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3463.7041933046044!2d-95.35770718459221!3d29.757273039035468!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8640bf26db794291%3A0x81457f66271a17e1!2sMinute+Maid+Park!5e0!3m2!1sen!2sus!4v1470766063041&amp;w=600&amp;h=375]</div>
</div>
<div class="col-md-5">
<h4>Email</h4>
View vega-child-functions-php
<?php
add_action( 'wp_enqueue_scripts', 'vega_child_enqueue_styles' );
function vega_child_enqueue_styles() {
$parent_style = 'vega-wp-style';
$deps = array('bootstrap', 'font-awesome', 'bootstrap-social');
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' , $deps);
$vega_wp_color_stylesheet = vega_wp_get_option('vega_wp_color_stylesheet');
wp_enqueue_style('vega-wp-color', get_template_directory_uri() . '/color-schemes/' . strtolower($vega_wp_color_stylesheet) . '.css', array() );
View vega-footer-contact-widget
View vega-contact-form
<div class="form-group">[text* full-name class:form-control placeholder "Full Name"]</div>
<div class="form-group">[email* email class:form-control placeholder "Email Address"]</div>
<div class="form-group">[textarea message class:form-control placeholder "Message"]</div>
<div class="form-action">[submit class:btn class:btn-primary-custom class:btn-block class:btn-lg]</div>