added support for resources, image display thumbnail or first image or custom logo
This commit is contained in:
parent
5a50772b39
commit
b94e48fdbb
File diff suppressed because one or more lines are too long
|
@ -31,6 +31,11 @@ if ( ! function_exists( 'foundationpress_theme_support' ) ) :
|
|||
// Add post thumbnail support: http://codex.wordpress.org/Post_Thumbnails
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
|
||||
// Add custom logo support
|
||||
// https://developer.wordpress.org/themes/functionality/custom-logo/
|
||||
add_theme_support( 'custom-logo' );
|
||||
|
||||
|
||||
// RSS thingy
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
|
|
|
@ -58,3 +58,8 @@ Frontend styles for gutenberg blocks
|
|||
.wp-block-file .wp-block-file__button{
|
||||
@include button();
|
||||
}
|
||||
|
||||
/** === Image === */
|
||||
.wp-block-image {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
@ -71,10 +71,10 @@
|
|||
|
||||
|
||||
//
|
||||
// news category
|
||||
// news & resources category
|
||||
//--------------
|
||||
|
||||
.news,.news-category {
|
||||
.news,.resources,.news-category,.resources-category {
|
||||
@include xy-grid;
|
||||
header,main,aside {
|
||||
@include breakpoint(small){
|
||||
|
@ -108,6 +108,8 @@
|
|||
height: 58vw;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
background-image: url('../img/ARC-HIVE-logo.svg');
|
||||
background-color: rgb(240,240,240);
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
|
@ -179,7 +181,7 @@
|
|||
aside {
|
||||
}
|
||||
}
|
||||
// end news category
|
||||
// end news & resources category
|
||||
|
||||
//
|
||||
// partners
|
||||
|
@ -228,12 +230,12 @@
|
|||
@include breakpoint(small){
|
||||
width: 100vw;
|
||||
margin: 0;
|
||||
&.widget_text,.textwidget {
|
||||
&.widget_text p,.textwidget {
|
||||
padding: $global-padding * 2;
|
||||
}
|
||||
}
|
||||
@include breakpoint(medium){
|
||||
&.widget_text,.textwidget {
|
||||
&.widget_text p,.textwidget {
|
||||
max-width: 50rem;
|
||||
margin:auto;
|
||||
padding: $global-padding * 2;
|
||||
|
@ -254,19 +256,19 @@
|
|||
// max-width: unset !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
&.widget_text,.textwidget {
|
||||
&.widget_text p,.textwidget {
|
||||
font-size: $global-font-size*1.2;
|
||||
padding: $global-padding * 2;
|
||||
}
|
||||
}
|
||||
@include breakpoint(xlarge){
|
||||
&.widget_text,.textwidget {
|
||||
&.widget_text p,.textwidget {
|
||||
font-size: $global-font-size*1.3;
|
||||
padding: $global-padding*3;
|
||||
}
|
||||
}
|
||||
@include breakpoint(xxlarge){
|
||||
&.widget_text,.textwidget {
|
||||
&.widget_text p,.textwidget {
|
||||
font-size: $global-font-size*1.6;
|
||||
padding: $global-padding*3;
|
||||
}
|
||||
|
|
|
@ -19,14 +19,12 @@
|
|||
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
|
||||
<?php //content here ?>
|
||||
<article class="">
|
||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
||||
<?php if ( has_post_thumbnail() ) :?>
|
||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
||||
<figure style="background-image: url(<?php echo get_the_post_thumbnail_url();?>);">
|
||||
<figure style="background-image: url('<?php echo get_the_post_thumbnail_url();?>');">
|
||||
</figure>
|
||||
</a>
|
||||
<?php else :?>
|
||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
||||
<figure style="background-image: url(<?php echo catch_post_first_image();?>);">
|
||||
<figure style="background-image: url('<?php echo catch_post_first_image();?>');">
|
||||
</figure>
|
||||
</a>
|
||||
<?php endif;?>
|
||||
|
|
Loading…
Reference in New Issue