added content type image
This commit is contained in:
parent
d990c388b8
commit
82546a5e15
16
style.css
16
style.css
@ -26,6 +26,22 @@ a:hover {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.image {
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: 0 4px 6px 1px rgba(50, 50, 50, 0.14);
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: black;
|
||||||
|
line-height: 0;
|
||||||
|
margin: 5.5em auto 0;
|
||||||
|
max-width: 640px;
|
||||||
|
width: 100%;
|
||||||
|
font-size: 75%;
|
||||||
|
}
|
||||||
|
.image img{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
8
template/post/content-image.php
Normal file
8
template/post/content-image.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
echo '<div class="image">';
|
||||||
|
the_content();
|
||||||
|
echo '</div>';
|
||||||
|
?>
|
||||||
|
</article>
|
Loading…
Reference in New Issue
Block a user