diff --git a/block-template-parts/attachment-image.html b/block-template-parts/attachment-image.html new file mode 100644 index 0000000..981fadc --- /dev/null +++ b/block-template-parts/attachment-image.html @@ -0,0 +1,11 @@ + + + + + + +[bw_fields file_size ] +[bw_fields dimensions ] + \ No newline at end of file diff --git a/block-templates/attachment.html b/block-templates/attachment.html index eb54ed4..e493205 100644 --- a/block-templates/attachment.html +++ b/block-templates/attachment.html @@ -1,8 +1,23 @@
attachment.html
- - + - + +
+ + +

Caption

+ + + + + +

Description

+ + +
+ + + \ No newline at end of file diff --git a/style.css b/style.css index c7674f4..e117ea2 100644 --- a/style.css +++ b/style.css @@ -85,3 +85,13 @@ div.wp-site-blocks > div.WP_DEBUG:first-of-type:hover { color: black; } + + +.attachment h1.wp-block-post-title { position: absolute; z-index: 100; border: 1px solid green; width: 100%; height: 45px; +margin: 0px; padding: 35px 0px 19px 30%; opacity: 0.8; background-color: #0693e3; color: #ffffff; +text-shadow: 1px 1px #333333;} + +/** + Style the featured image - from [bw_field featured] to max width 100% + */ +img.featured { max-width: 100%; border-bottom: 1px solid grey; top: 40px; }