Download Monitor
[resolved] Modify loop_start according to template (2 posts)

  1. Johan van der Wijk
    Posted 2 years ago #

    I have a page that contains multiple download shortcodes. Some are for documents and others are for images. To be able to style these differently I have used loop_start="<ul class='dlm-downloads-image'>"] in the shortcode to wrap images in a different class.

    Unfortunately the WYSIWYG editor breaks the code above. Therefore I am trying to modify the loop_start based on the template that is being used.

    So what I am trying to achieve is:
    - if the template that is defined in the shortcode is 'image' -> modify the loop_start to <ul class='dlm-downloads-image'>

    Is there a way to do this using a filter or in any other way?


  2. Johan van der Wijk
    Posted 2 years ago #

    Ok, this is fixed now. I have pasted the shortcode in the WYSIWYG editor which encodes the tags insite.

    Thanks to Mike for pointing me to this workaround!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Download Monitor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic