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

    (@dglingren)

    Thanks for your question and for your patience while I was travelling. Thank you as well for posting the link to your site.

    I had a look at your Rassegna Stampa/Press Review page. I can see two lists that look like they were created with [mla_gallery]; Blog and “Riviste e giornali”/”Magazines and newspapers”. Each list contains one entry; a link to a PDF document.

    Is that right?

    The links contain an onclick= attribute for Google Analytics. Both of the links worked for me, but did not open in a separate page/tab because the target="_blank" attribute does not appear in the link tag. MLA does not generate any onclick= attributes; are you using an SEO plugin or other plugin that might be modifying the links?

    I also see the default item, icon and caption tags have been replaced by <ul> and <li> tags. Have you worked out how to create and use a custom markup template?

    If you can answer the above questions I can be more helpful. Thanks for any additional information you can give me.

    Thread Starter dejudicibus

    (@dejudicibus)

    Well, I found out how to create a style and a template. So I did, and decided to use just text links since the mla_viewer does not work. For example, I cannot set the width of icon nor I can show a preview of PDF file. I can create a test page for you if you like. I had the necessity to have that page ready so I decided to get through with graphics and focus only on links.

    Thread Starter dejudicibus

    (@dejudicibus)

    FOr example, if I try

    [mla_gallery post_mime_type="application/pdf" link=file mla_target="_blank" attachment_category='press_release' size=icon]

    the result can be seen on

    https://academy.romafilm.it/test/

    Plugin Author David Lingren

    (@dglingren)

    Thank you for your updates and for taking the time to put together a test page, which is very helpful.

    If you look at the HTML source text you will see:

    <img width="64" height="64" class="attachment-64x64" alt="Wired - Zoolander 2 e il nuovo Bond, che sia Rinascimento a Cinecittà" src="https://academy.romafilm.it/wp-content/plugins/media-library-assistant/images/crystal/pdf.png">

    The icon size is set in the <img> tag, but is overridden by line 656 in your theme’s style.css file. That’s why you don’t see the correct size. Your style.css file is also affecting other parts of the display, such as the <dd> tag for the caption.

    If you use a custom style and markup template you can change the class names to avoid the overrides, or you can play with the style sheet. As far as I can see, MLA is performing as it should.

    Regarding the mla_viewer feature, you may be interested to know that I am working hard to restore the PDF thumbnail capability in my next MLA version. The current Development Version has a preliminary implementation of the new feature if you want to give it a try. You can find more information in this recent topic:

    Featured Image for mla_viewer

    I am marking this issue resolved because MLA is working properly and you should be able to update the CSS styles to get the results you want. Please update this topic if you have problems or further questions and I will give you all the help I can. Thanks for your interest in the plugin.

    Thread Starter dejudicibus

    (@dejudicibus)

    Well, David, great and First Class Support. I will work on that to fix the problem on my side. I can’t change the style sheet since that style is inside the parent theme (which is not mine), not the child theme (mine). So, I will apply your suggestion to work with a custom style/template to avoid override.

    Plugin Author David Lingren

    (@dglingren)

    I have uploaded a new MLA Development Version dated 20150625 that includes a new “Thumbnail Generation” capability. The Media/Assistant “Thumbnail” Bulk Action lets you select one or more non-image items and generate new thumbnail image items you can use as the Featured Image for those items. That lets mla_viewer display the thumbnails without re-generating them each time the gallery is composed. You can find step-by-step instructions for using the Development Version in this earlier topic:

    MLA errors when using plugin

    I am very interested in feedback on this new feature. If you get a chance to try the Development Version please let me know how it works for you. Thanks for your interest in the plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Link does not work & template’ is closed to new replies.