Download Monitor
Download-Monitor auto inserts code (2 posts)

  1. dokgu
    Posted 3 years ago #

    I've installed the latest download-monitor plugin and I wanted to modify the way it displays the download link.

    So what I did was to put this in the editor:

    <span class="file-details">
        <h5>File Details</h5>
        <ul id="fileDetails">
                <span class="fileType">File Type</span>
                <strong><?php print(strtoupper($dlm_download->get_the_filetype())); ?></strong>
                <span class="fileDownloads">Downloads</span>
                <strong><?php printf( _n( '1', '%d', $dlm_download->get_the_download_count(), 'download_monitor' ), $dlm_download->get_the_download_count() ) ?></strong>
                <span class="fileSize">File Size</span>
                <strong><?php print($dlm_download->get_the_filesize()); ?></strong>
        <a class="download-link" title="<?php if ( $dlm_download->has_version_number() ) printf( __( 'Version %s', 'download_monitor' ), $dlm_download->get_the_version_number() ); ?>" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow">

    But when I look at the rendered page, the source says that the <span class="file-details"> is contained in a p tag and it only contains a br tag.

    My intended content for the span is now located outside of the span. Please help me with this, I'm very new to WordPress modifications but I can code.

    Basically, the structure that I wanted to have is like this: http://imageshack.us/a/img812/3978/1c7x.png

    But the structure that is rendered is like this: http://imageshack.us/a/img541/7277/d2a.png

    You can view my problem at: http://dokgu.com/social-mediacons/


  2. Mike Jolley
    Plugin Contributor

    Posted 2 years ago #

    Maybe try something other than a span - its not a block level element so could do something funky when output by WP. Use a div.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic


No tags yet.