Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Lingren

    (@dglingren)

    Nice to hear from you again, and thanks for the link back to the earlier support topic. I want to make sure I understand your implementation and how/where the “attachment tags” appear.

    I read back through the earlier topic and there you wrote “I can’t remember if the behavior was when a clickable tag on the attachment page is clicked, then navigates to the tag gallery page. Are the “attachment tags” you want to style the list of item-specific tags that appear on the Attachment/Media Page or do you mean some element of the “tag gallery page”? In other words, are these the tags generated by the foreach ( $terms as $term ) { loop in the earlier topic?

    It would be very helpful if you could post a link to the page on which the “attachment tags” appear. Thanks for any additional details you can provide.

    Thread Starter ratamatcat

    (@ratamatcat)

    Hi David,

    Thanks for your follow-up and queries.

    The code below, is used in the page which displays the clickable tags:

    <div class="entry-terms" style="margin-bottom: 3rem">
    <?php custom_terms_list( get_the_ID() ); ?>
    </div><!-- .entry-terms -->

    it goes to a page called tag-gallery with the URL:

    https://www.imjexa.com/tag-gallery/?my_taxonomy=attachment_tag&my_term=astronomical-objects

    i.e. where the tag clicked would be ‘astronomical objects’ of course.

    And the code here is the dedicated code you provided:

    https://drive.google.com/file/d/1iKQsDgV-dg2mD_0yqvE9duVJCc-lYAid/view?usp=sharing

    My site’s using a plugin that hides it, so if access is essential I can provide a password or temporarily deactivate the plug-in? then I could provide the link as you requested,

    thanks,

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the additional information and the link to the code for the tag gallery. I am still not sure which links you are trying to style.

    Are you trying to style the links generated by the custom_terms_list( get_the_ID() ); function? This looks like one of the example functions from the media-library-assistant/examples/themes/twentytwelve-mla child theme that comes with MLA; is that right?

    If that’s right, the example function does not add any class or id attributes to the links it generates. You could modify the code to add them, or use something like .entry-terms a to style links in the div surrounding the terms list.

    Let me know if my understanding is correct and my suggestions make sense.

    Plugin Author David Lingren

    (@dglingren)

    It has been seven weeks since my last post in this topic. I assume you have found a solution to your CSS class/styling application.

    I am marking this topic resolved, but please update it if you still need help with your question. Thanks for your continued interest in the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSS class for the attachment tags’ is closed to new replies.