Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I might be too late, but you have to use functions in php code, not shortcodes. Something like this:

    <?php if (function_exists ('wpmd_is_phone') && function_exists ('wpmd_is_notphone')) : ?>
    	<?php if (wpmd_is_notphone()) : ?>
    		<div align=center>
    		google advert code</div>
    	<?php endif; ?>
    	<?php if (wpmd_is_phone()) : ?>
    		<div align=center>
    		google advert code</div>
    	<?php endif; ?>
    <?php endif; ?>

    Well, this is beyond my understanding, but it looks like the width you set is always increased by 10. x_x

    That’s because the div around the image and caption has explicit width of 290px which doesn’t match the image width. If you can change it to 280px you’ll get the desired behaviour.

    P.S. The dirty way to fix this would be by adding width: 280px !important; to .alignright class. But it’s better to fix the theme, methinks.

    Hey!
    I can confirm this behaviour, but as I’ve found on my installation, it seemed to be caused not by update of Autoptimize, but by the update of WordPress SEO plugin, that “Implemented new sitelinks search box json+ld code” (according to their changelog).

    In their latest update they added a script of type "application/ld+json" which was inproperly processed by Autoptimize.

    I’m not sure this is the same case, though, yet the symptom is the same. ^^’

Viewing 4 replies - 1 through 4 (of 4 total)