• Resolved schoefl

    (@zemekis148)


    1. I have pages with more than one download-link:
    [download id=”first”]
    [download id=”second”]

    2. I need to add a CSS-class to each download-link, corresponding to the category (one category per download):
    <a class=”download-link category-one”…
    <a class=”download-link category-two”…

    I have tried a lot, but either only the category of the last download occupies every download:
    <a class=”download-link category-two”…
    <a class=”download-link category-two”…

    or the downloads with the correct additional classes appear twice:
    <a class=”download-link category-one”…
    <a class=”download-link category-two”…

    <a class=”download-link category-one”…
    <a class=”download-link category-two”…

    Please, can you give me a code snippet, that works for my needs?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter schoefl

    (@zemekis148)

    The problem is solved!

    I needed the classes to add media-type icons. The template content-download-filename.php does this already.

    Thank You1

Viewing 1 replies (of 1 total)
  • The topic ‘Add CSS-Class to ‘download-link’’ is closed to new replies.