Site logo

Archived topic

IMG tag on Excerpts

3 replies · Started by Douglas on May 7, 2021

Viewing posts 1–4 of 4

Hi everyone, im trying to add a IMG TAG on excerpts on line with some custom text. I think that i've to add html tags exception on excerpt function but when i add something on functions.php the site turns white.

Im using GP and Grid Plus

Example on excerpt

<center>RECETA 32<p>
<img src="wp-content/uploads/2021/05/greenvie-blanco.svg" </i> 
<p>

Thanks !

Hi Douglas,

You are not supposed to modify functions.php unless you are using a child theme.

The HTML doesn't seem right.

I'm not sure I fully understand your question here, could you explain a bit more and link us to the site in question?

Let me know :)

Hi Ying, thanks for your reply. Im using the GP Child Theme. Actually i've got this website https://zyrcularfoods.com/recetas/ with the Grid Plus Plugin. I have to put it like this . My idea was to put the code from here. But idk why when i pasted on function.php on child theme turn white screen all the site

On the excerpt i put this:

<center>RECETA 32<p>
<p>
<p>
<p>
<p>
<p>
<p>
<p>

Green Vie<br><img src="wp-content/uploads/2021/05/greenvie-blanco.svg" </img> 
<p>

on css:

.grid-plus-container .grid-post-item .excerpt,
.grid-plus-container .grid-post-item .categories {
    font-size: 16px !important;
    line-height: 2.5em !important;
    max-height: 10em !important;
		text-transform: uppercase;
    overflow: hidden;
}
.grid-plus-container .grid-post-item .hover-inner {
     margin-top: -47px !important;
 }
This archived topic is closed to new replies.