# Hero image text visibility

**URL:** <https://forums.concretecms.org/t/hero-image-text-visibility/8764>\
**Category:** Using Concrete / Help\
**Created:** [February 11, 2025, 8:52am UTC](https://forums.concretecms.org/t/hero-image-text-visibility/8764 "2025-02-11T08:52:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedroC5](https://forums.concretecms.org/user_avatar/forums.concretecms.org/pedroc5/32/3513_2.png) [@pedroC5](https://forums.concretecms.org/u/pedroC5)\
**Post date:** [February 11, 2025, 8:52am UTC](https://forums.concretecms.org/t/hero-image-text-visibility/8764/1 "2025-02-11T08:52:59Z")

</div>

I have used the Hero image blocks on my site. It works fine but the Hero Heading and Description texts have a visibility problem.

As my H1 and H2 styles are dark text these are not visible on the most of the used images (see my attachment). And there is no possibility to move the text left or right neighter. So it is always centered.

Is there any plans to make these improvements to the Hero image block?

 ![Screenshot 2025-2-11 kello 10.17](https://forums.concretecms.org/uploads/default/original/2X/4/4a3d22d491de8eeb656491e043ccf164e499dd60.jpeg)

---

<div class="post-metadata">

**Author:** ![ConcreteOwl](https://forums.concretecms.org/user_avatar/forums.concretecms.org/concreteowl/32/6304_2.png) [@ConcreteOwl](https://forums.concretecms.org/u/ConcreteOwl)\
**Post date:** [February 11, 2025, 9:39am UTC](https://forums.concretecms.org/t/hero-image-text-visibility/8764/2 "2025-02-11T09:39:12Z")

</div>

You can achieve this with a custom template.  
Create a folder in application/blocks named hero\_image.  
Inside that folder create a folder named templates.  
Copy the view.php file from concrete/blocks/hero\_image to your templates folder and rename it to something appropriate i.e. WhiteText.php  
In your WhiteText.php file add some css styling immediately after the php closing tag like this:

```auto
<style>
.ccm-block-hero-image-text h1 {
   color:#fff;
}
</style>

```

Then when you are in edit mode choose your custom template from the options dialog.

---

<div class="post-metadata">

**Author:** ![TMDesigns](https://forums.concretecms.org/user_avatar/forums.concretecms.org/tmdesigns/32/4261_2.png) [@TMDesigns](https://forums.concretecms.org/u/TMDesigns)\
**Post date:** [February 11, 2025, 11:09am UTC](https://forums.concretecms.org/t/hero-image-text-visibility/8764/3 "2025-02-11T11:09:06Z")

</div>

As @ConcreteOwl said this will give you a new template, but if you want you can also create a folder inside the template folder with the template name (white\_text) you can then copy the view.php, view.css and the view.js and edit all of them if you want to add some custom code. Concrete Pulls in the css and js into the front end when the custom template is selected.

@andrew has a great tutorial here

> **[Modifying the Default View Template for a Core Block Type](https://documentation.concretecms.org/developers/working-with-blocks/working-with-existing-block-types/modifying-default-view-template-core-block-type)**
>
> Modifying the Default View Template for a Core Block Type

---

<div class="post-metadata">

**Author:** ![ConcreteOwl](https://forums.concretecms.org/user_avatar/forums.concretecms.org/concreteowl/32/6304_2.png) [@ConcreteOwl](https://forums.concretecms.org/u/ConcreteOwl)\
**Post date:** [February 11, 2025, 3:02pm UTC](https://forums.concretecms.org/t/hero-image-text-visibility/8764/4 "2025-02-11T15:02:58Z")

</div>

> [@TMDesigns](#):
>
> you can then copy the view.php, view.css and the view.js

Except there is no view.css file or a view.js file inside the concrete/blocks/hero\_image folder?

---

<div class="post-metadata">

**Author:** ![TMDesigns](https://forums.concretecms.org/user_avatar/forums.concretecms.org/tmdesigns/32/4261_2.png) [@TMDesigns](https://forums.concretecms.org/u/TMDesigns)\
**Post date:** [February 11, 2025, 3:31pm UTC](https://forums.concretecms.org/t/hero-image-text-visibility/8764/5 "2025-02-11T15:31:50Z")

</div>

Then you can create on in you template folder and it will pull them in.

---

<div class="post-metadata">

**Author:** ![pedroC5](https://forums.concretecms.org/user_avatar/forums.concretecms.org/pedroc5/32/3513_2.png) [@pedroC5](https://forums.concretecms.org/u/pedroC5)\
**Post date:** [February 11, 2025, 4:35pm UTC](https://forums.concretecms.org/t/hero-image-text-visibility/8764/6 "2025-02-11T16:35:39Z")

</div>

Hurrah! This works. I tried the first one first.

Thanks for the detailed instructions to both of you.

Noticed that I didn’t have at concrete/blocks/ the hero\_image folder (update from v8 to v9 might be a reason why it was missing). I copied it from the other site.
