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
/* Solid color alerts for Contact Form 7 */ | |
div.wpcf7-mail-sent-ok { | |
background-color: #398f14; | |
color: #fff; | |
border: 2px solid #398f14; | |
display: inline-block !important; | |
} | |
div.wpcf7-validation-errors { |
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 | |
$postid = get_the_ID(); | |
// echo $postid; // TEST | |
?> |
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
// Load custom fields using a post id | |
$postid = 315 ; // post ID 315 | |
$post = get_post( $postid ); // Use the post ID to get the post data | |
echo $postid; // The post ID | |
echo $post->post_title; // The post title | |
echo $post->route_id; // The custom field |
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 tcp_list_timetable_route_ids( $args = array() ) { | |
if ( ! post_type_exists('route') ) { | |
// Fail silently | |
return; | |
} | |
$defaults = array( | |
'before' => '<div class="tcp_route_list">', | |
'after' => '</div>', | |
'sep' => ' ', | |
'use_color' => false, // TODO - doesn't work |
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
<!-- Logo --> | |
<?php | |
if (is_front_page()) { | |
echo '<h1 class="site-logo"><a href="' . esc_url( home_url( '/' ) ) . '"><img src="' . get_stylesheet_directory_uri() . '/images/logo/logo.png" | |
alt="The H1 Heading and Logo" /> | |
</a></h1>'; | |
} else { | |
echo '<a href="' . esc_url( home_url( '/' ) ) . '" class="site-logo"><img src="' . get_stylesheet_directory_uri() . '/images/logo/logo.png" | |
alt="The Logo" /> |
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
<!-- Logo (SVG) --> | |
<?php | |
if (is_front_page()) { | |
echo '<h1 class="site-logo"><a href="' . esc_url( home_url( '/' ) ) . '">'; | |
get_template_part('images/logo/logo-base-theme.svg'); | |
echo '<span class="is-sr-only">The h1 and logo</span></a></h1>'; | |
} else { | |
echo '<a href="' . esc_url( home_url( '/' ) ) . '" class="site-logo">'; | |
get_template_part('images/logo/logo-base-theme.svg'); | |
echo '<span class="is-sr-only">The logo</span></a>'; |
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
// Add horizontal scrollbar on top of block | |
.block-container, | |
.block { | |
transform:rotateX(180deg); | |
-ms-transform:rotateX(180deg); /* IE 9 */ | |
-webkit-transform:rotateX(180deg); /* Safari and Chrome */ | |
overflow-x: auto; | |
} |
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
// * Primary Color | |
$primary: #6d597a; | |
$secondary: #b56576; | |
$accent: #e56b6f; | |
// Primary - Lighten | |
$primary-lighten-10: mix(white, $primary, 10%); | |
$primary-lighten-20: mix(white, $primary, 20%); | |
$primary-lighten-30: mix(white, $primary, 30%); | |
$primary-lighten-40: mix(white, $primary, 40%); |
OlderNewer