• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RESOLVED HTML snippet + attribute

Messages
2
Likes
0
Points
1
#1
Hello,
In a html snippet I would like to know how to show an attribute in the middle of the text

////////////////
<div class='et-box et-bio'>
<div class='et-box-content'>
<p>This article was originally written in collaboration with <strong>($autor_articulo)</strong><p>
</div>
</div>
////////////////

is "($autor_articulo)" written not correctly or there is another way to call and show the attribute when publish?


Thanks in advance!
 

Temyk

Developer & Support
Messages
1,129
Likes
42
Points
48
#2
Hello.

You can't use PHP code in an HTML snippet, so you can't use attributes there.
You can use HTML and attributes in a Universal snippets.
PHP:
<p>This article was originally written in collaboration with <strong><?php echo $autor_articulo;?></strong><p>