Browse Source

added content type image

master
3err0 3 years ago
parent
commit
82546a5e15
  1. 16
      style.css
  2. 8
      template/post/content-image.php

16
style.css

@ -26,6 +26,22 @@ a:hover {
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 {
background-color: white;
border-radius: 2px;

8
template/post/content-image.php

@ -0,0 +1,8 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
echo '<div class="image">';
the_content();
echo '</div>';
?>
</article>
Loading…
Cancel
Save