• The following shortcode URL is not working in Chrome, but works in Firefox:

    [wpdm_package id=’7095′]

    The Babysitting Schedule PDF button should open a PDF but in Chrome I get a blank page. The other buttons don’t work as well in Chrome.

    Is there a fix for this?
    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    Hi,

    You can’t use shortcodes which output a lot of HTML in the buttons plugin. As you can see the link generated below is not correct HTML. Either put the URl directly into the maxbuttons plugin ( this can be done in the shortcode as well, see examples ) or ask if the other shortcode is able to output *only* an URL to the link you desire and nothing else.

    This is the output, which will not work anywhere I suppose –

    <a class="maxbutton-25 maxbutton maxbutton-babysitting-schedule-pdf" target="_blank" href="//plymouthfitness.com/download/babysitting-schedule-2/?wpdmdl=7095&quot; >
        <div class=&quot;media&quot;>
            <div class=&quot;pull-left&quot;><img class=&quot;wpdm_icon&quot; alt=&quot;Icon&quot; src=&quot;https://plymouthfitness.com/wp-content/plugins/download-manager/assets/file-type-icons/pdf.png&quot; onError='this.src=&quot;https://plymouthfitness.com/wp-content/plugins/download-manager/assets/file-type-icons/_blank.png&quot;;' /></div>
            <div class=&quot;media-body&quot;><strong class=&quot;ptitle&quot;>Babysitting Schedule <span class=&quot;label label-default&quot; style=&quot;font-weight: 400;&quot;>419.15 KB</span></strong>
                <div><strong><a class='wpdm-download-link wpdm-download-locked [btnclass]' rel='nofollow' href='#' onclick=&quot;location.href='https://plymouthfitness.com/download/babysitting-schedule-2/?wpdmdl=7095';return false;&quot;>Download</a></strong></div>
            </div>
        </div>
    </div>
    <div style=&quot;clear: both&quot;></div>
    </div>"><span class='mb-text'>Babysitting Schedule PDF</span></a>
    Thread Starter skailey

    (@skailey)

    Ok, thanks. I find it strange that it works in Firefox, but not Chrome, which I suppose is just an issue with Chrome.

    I’ll look at inserting the full URL instead of the shortcode, or a different option altogether.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode URL not working in Chrome’ is closed to new replies.