Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Doherty

    (@_doherty)

    Can you please provide a link to a site showing this behaviour?

    Thread Starter mrwweb

    (@mrwweb)

    Hi,

    First, the title should say “Empty Links” sorry about that typo.

    Unfortunately, I don’t have a live site using this since we moved away from the plugin to avoid this.

    I’m having this problem with another theme, too.

    After disabling the plugin the attachment page (image.php) navigation thumbnails works as expected.

    The site is currently available only in intranet, but I’ll paste the code to see if it helps.

    Code with vanilla-pdf-embed enabled

    <nav class="navigation">
    	<div class="nav-previous">
    		<object class="vanilla-pdf-embed" data="https://mywebsite-oldurl/wp-content/uploads/2015/12/DSC_0035.jpg#page=1&view=FitH" type="application/pdf" width="100%" height="500em" internalinstanceid="26">
    			<p><a href="https://mywebsite-oldurl/wp-content/uploads/2015/12/DSC_0035.jpg">Download the PDF file .</a></p>
    		</object>
    	</div>
    	<div class="nav-next"></div>
    </nav>

    Code with vanilla-pdf-embed disabled

    <nav class="navigation">
    	<div class="nav-previous">
    		<a href="https://mywebsite/page/attachment/dsc_0035/">
    			<img width="150" height="150" src="https://mywebsite/wp-content/uploads/2015/12/DSC_0035-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="Sala de estudo em grupo">
    		</a>
    	</div>
    	<div class="nav-next"></div>
    </nav>

    Note that it adds an <object> and it uses different urls to the image. This site has changed URL but with the plugin enabled it gets the previous URL (mywebsite-oldurl) and with the plugin disabled it gets the current URL (mywebsite).

    Plugin Author Mike Doherty

    (@_doherty)

    Sorry I never came back to this. It looks like your wordpress database lists the image attachment as a PDF, and the plugin tries to replace it with an embed. You should see if you can correct the post_mime_type for dsc_0035.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug: Empty s replace Twenty Sixteen Image Paging Navigation’ is closed to new replies.