This file contains 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
// Foundation for Sites Settings | |
// ----------------------------- | |
// | |
// Table of Contents: | |
// | |
// 1. Global | |
// 2. Breakpoints | |
// 3. The Grid | |
// 4. Base Typography | |
// 5. Typography Helpers |
This file contains 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 | |
/* ------------------------------------------------------------- | |
* Custom Logo add this in "after_setup_theme" hook | |
* ============================================================*/ | |
add_theme_support( 'custom-logo' ); | |
/* ------------------------------------------------------------- | |
* Enable svg support | |
* ============================================================*/ |
This file contains 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
<style type="text/css"> | |
.dropdown-menu { | |
border-bottom:1px solid red; | |
} | |
.current-nav-parent > .dropdown-menu{ | |
border: 4px solid red; | |
} | |
.current-nav-parent > .dropdown-menu{border-bottom:0} | |
</style> |
This file contains 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
# Redirect http to https .htaccess | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{ENV:HTTPS} !=on | |
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] | |
# Redirect http to https apache | |
<VirtualHost *:80> | |
ServerName www.example.com |
This file contains 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
.btn-new-color { | |
background-image: linear-gradient(#DCA, #DDB); | |
border-color: #B5A0A0; | |
color: #4C3D3D !important; | |
&:hover { | |
background-color: #DDD8B6; | |
} | |
} |
This file contains 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
/*------------------------------------------------------------ | |
* Get Attachment ID from image src | |
* Author: http://stylishwp.com/ | |
============================================================*/ | |
if ( ! function_exists( 'swp_get_attachment_id_from_src' ) ) : | |
function swp_get_attachment_id_from_src ( $image_src ) { | |
global $wpdb; | |
$id = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE guid = %s", $image_src) ); | |
return $id; | |
} |
This file contains 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 builder_custom_post_gallery( $output, $attr ) { | |
global $post; | |
static $instance = 0; | |
$instance++; | |
if ( ! empty( $attr['ids'] ) ) { | |
// 'ids' is explicitly ordered, unless you specify otherwise. | |
if ( empty( $attr['orderby'] ) ) { |
This file contains 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
@for $i from 1 through 99 { | |
span:nth-child(#{$i}) { | |
color: lighten(#000000, $i); | |
} | |
} |
This file contains 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 | |
// author : Clervens Volcy - http://goo.gl/G1hRPS | |
// add conditional statements for mobile devices | |
function is_ipad() { | |
$is_ipad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad'); | |
if ($is_ipad) | |
return true; | |
else return false; |
NewerOlder