Hello,
I’m looking to add a label to my portfolio grid.
For example “NEW” “SOLD OUT” “50% SOLD”, … to draw attention to certain portfolio item (example below).
I was thinking about using the info of the ‘Excerpt’ field in de WordPress editor to add this info.
( the_excerpt() function )
Does anyone know what php- and css-files i need to edit to accomplish this?
I can’t seem to find them in de theme folder.
Kind regards
Hey liquidsociety,
Thank you for using Enfold.
Did you enable the excerpt? Try to add a container with a custom class attribute in the excerpt field. Example:
<div class="av-availability sold-out">SOLD OUT</div>
You can then use that class attribute to style that particular container.
.av-availability {
position: absolute;
top: 20px;
right : 20px;
background: green;
color: white;
padding: 7px 14px;
}
.av-availability.sold-out {
background: red;
}
.av-availability.fifty-sold {
background: orange;
}
.av-availability.new {
background: blue;
}
You can also modify the config-templatebuilder > aviashortcodes > portfolio > portfolio.php file directly.
Best regards,
Ismael
Wow, that’s an easy solution!
Thanks for the info!
Hi liquidsociety,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria