Special Offer: Buy All 45 Premium WordPress Themes for Just $55. Learn more

How to Add Text Over Image Block

No Comments

Our themes support the WordPress out-of-the-box blocks and include theme built-in Gutenberg blocks. In this article, we will look at the Text Over Image block.

The next step is to open for edit or create a new page or block with the WordPress editor.

First you’ll need the link of your image in the Image Library.

You can add in the Page some image block and with right click select “Edit as HTML” code to take the URL of the inserted image. After that Remove that block. (or if you have already added images in your Library, you can go to Media Library and see the Image URL you choose for you Text Over Image Block.

Text over Image Block

Here is HTML code you will need to customize for the new block:

<div style="display: grid;">
<div style="margin: auto; padding-left: 40px; ">
<div style="font-size: 40px; transform: translateY(170px); position: relative; z-index: 1; background: #8fd457; opacity: 0.8;" class="tish-animation-block-wrapper" data-animationtype="zoomIn" class="wp-block-tishonator-animation-block"><div class="tish-animation-block">
<span style="color:#fff;" class="has-inline-color"><strong>Text over Image Block</strong></span>

</div></div> 

<div style="position:relative; z-index: 0; transform: translateY(-40px); transform: translateX(-40px); 
opacity: 0.7;" class="tish-animation-block-wrapper" data-animationtype="zoomIn" class="wp-block-tishonator-animation-block"><div class="tish-animation-block"><img class="wp-image-3035" style="width: 600px;" src="https://ayatemplates.com/demo2/ayabookspro/wp-content/uploads/sites/20/2014/06/Client8.jpg" alt=""></div></div>
</div>
</div>

Add from the + icon one new Custom HTML block. Insert the code above, replacing the image link with yours (the purple text).

You can customize and change the color background behind the text (the red bolded text). Replace with your own preferred style.

Then update to publish and see the result.

Hope this is helpful.

Categories: Uncategorized

Partial Image Overlay Block

No Comments

Our themes support the WordPress out-of-the-box blocks and include theme built-in Gutenberg blocks. In this article, we will look at the Partial Image Overlay block.

First, you need to have a premium theme by us.

If you use a free theme, it does not include the block. No other configuration or change is required, the block is built-in in our premium themes.

The next step is to open for edit or create a new page or block with the WordPress editor.

Click on the ‘+’ icon, and insert the ‘Partial Image Overlay’ block:

Then select/upload Image and edit content below it:

By default the Image is displayed in Right and the Content in Left, but it want to display Image in Left and Content in Right, check the ‘Display Image in Left’ checkbox.

Then update to publish and see the result.

Categories: Uncategorized