Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1100611

    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.

    Example

    Kind regards

    • This topic was modified 5 years, 6 months ago by liquidsociety.
    #1101616

    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

    #1102794

    Wow, that’s an easy solution!
    Thanks for the info!

    #1103052

    Hi liquidsociety,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.