Pod Templates and Block CSS inclusions
-
Hi,
I am using a pod template to display a hero banner picture for a website I am working on using the block editor. I have the following in my template:
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span> </a> <img class="wp-block-cover__image-background wp-image-444" alt="" src={@hero_image}; ?> data-object-fit="cover">When I view the page that calls this template I don’t see anything, however if I was to add a link to the covers css like the:
<link rel="stylesheet" id="wp-block-cover-css" href="/wp-includes/blocks/cover/style.min.css?ver=6.1.1" media="all">I see the image as expected. I have noticed this happens for other blocks too, the CSS is ignored or not loaded.
I feel I am doing something wrong here, what is the correct way to do this?
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Pod Templates and Block CSS inclusions’ is closed to new replies.