This file contains hidden or 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 $count = count( get_field( 'field-name' ) ); ?> // can be used for counting rows in a repeater. works well w/ slick slider if you only want a slider on > 2 counts |
This file contains hidden or 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
/* change class to theme name initials - slider. change color to primary or secondary? | |
*/ | |
.tf-slider { | |
display: flex; | |
align-items: center; | |
text-align: center; | |
&__circle-border { | |
border: 2px solid $primary; | |
border-radius: 46px; |
This file contains hidden or 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
html { | |
scroll-behavior: smooth; | |
} | |
section { | |
padding: 3rem 0; | |
} | |
.grid-container { | |
width: 100%; | |
@media (min-width: 1500px) { |
This file contains hidden or 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
// Register testimonials | |
function custom_testimonials() { | |
$labels = array( | |
'name' => _x( 'Testimonials', 'Post Type General Name', 'text_domain' ), | |
'singular_name' => _x( 'Testimonial', 'Post Type Singular Name', 'text_domain' ), | |
'menu_name' => __( 'Testimonials', 'text_domain' ), | |
'name_admin_bar' => __( 'Testimonials', 'text_domain' ), | |
'archives' => __( 'Testimonial Archives', 'text_domain' ), |
This file contains hidden or 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
// Register Custom Post Type | |
function custom_news_events() { | |
$labels = array( | |
'name' => _x( 'News & Events', 'Post Type General Name', 'news_events_text_domain' ), | |
'singular_name' => _x( 'News/Event', 'Post Type Singular Name', 'news_events_text_domain' ), | |
'menu_name' => __( 'News & Events', 'news_events_text_domain' ), | |
'name_admin_bar' => __( 'News & Events', 'news_events_text_domain' ), | |
'archives' => __( 'News & Event Archives', 'news_events_text_domain' ), |
This file contains hidden or 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
// count for wpquery, goes here | |
$the_query = new WP_Query( $args ); | |
$count = $the_query->found_posts; | |
// then inside of the content | |
if ( $count > 2 ) { | |
echo '<div id="np-slider-three" class="np-slider">'; | |
} else { | |
echo '<div class="grid-x grid-margin-x medium-up-3">'; | |
}; |
This file contains hidden or 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 | |
/** | |
* Template part for displaying page content in page-top-level-listing.php | |
*/ | |
?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class( '' ); ?> role="article" itemscope | |
itemtype="http://schema.org/WebPage"> | |
<?php get_template_part('parts/breadcrumbs'); ?> | |
This file contains hidden or 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
// Register Custom Post Type | |
function news_detail() { | |
$labels = array( | |
'name' => _x( 'News & Events', 'Post Type General Name', 'text_domain' ), | |
'singular_name' => _x( 'News & Events', 'Post Type Singular Name', 'text_domain' ), | |
'menu_name' => __( 'News & Events', 'text_domain' ), | |
'name_admin_bar' => __( 'News & Events', 'text_domain' ), |
OlderNewer