Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Rogier Noort

    (@rogier-noort)

    Small update; I did a Live Preview with the TwentySixteen theme and encountered the same issue.

    Plugin Author Ian Dunn

    (@iandunn)

    this wasn’t a problem before.

    Before what?

    Thread Starter Rogier Noort

    (@rogier-noort)

    Hello Ian (sorry for the late reply, I had not received an email notification).

    I did an update on the theme (now Jupiter 5). It’s the only thing I think has some potential impact.

    However, as mentioned, with TwentySixteen I had the same issue.

    Plugin Author Ian Dunn

    (@iandunn)

    Hmmm, I can’t see any clues as to what’s going wrong. It might help to temporarily disable all plugins, and see if that fixes it. If it does, you can re-enable them a few at a time, until you isolate which specific plugin is causing the problem. That shouldn’t have any permanent side-effects on the side.

    Thread Starter Rogier Noort

    (@rogier-noort)

    Thanks for the suggestion Ian.

    – I deactivated all (but one) plugins, no change
    – I do not have any caching active
    – Everything is updated
    – I tried with an older version of the Jupiter theme, #4 (in Live Preview), with the same results
    – This is the page: http://www.ixs.com/world-wide-distribution/
    – I also made a new testpage, same results

    Judging from the above, it’s not theme or plugin related (which is weird, I know. I never have normal, easily solved problems).

    If you have anything else, again, it would be greatly appreciated.

    Plugin Author Ian Dunn

    (@iandunn)

    Oh, I think I see the problem. The image that’s being passed to BGMP is 150×150, so it’s actually doing exactly what it should (from its perspective). e.g.,

    http://www.ixs.com/wp-content/uploads/2014/02/iXS_motorcycle_fashion-150×150.png

    I’m guessing that your theme is setting that as the default size for featured images.

    You can use the bgmp_featured-icon-size filter to change the size of the icons. See add_image_size() for background info.

    Thread Starter Rogier Noort

    (@rogier-noort)

    Hi Ian, thanks for the suggestion, it does make sense.
    I’m not much of a coder, and I can’t seem to figure out what it is exactly what you want me do.

    Do I add the add_image_size() to my functions.php?
    Do I add the featured-icon-size to the bgmp shortcode?
    Or is it both (it’s probably both)?

    If so, could you give me a hint on the syntax?

    Plugin Author Ian Dunn

    (@iandunn)

    A non-code solution would be to delete the images, and then upload new ones that are the exact size you want them to be displayed as.

    For the code solution, it depends on the image sizes that have been defined by your theme (or other plugins), but it’d work something like this:

    add_image_size( ‘bgmp_icon’, 32, 32 );

    function resize_bgmp_icons( $size ) {
    return ‘bgmp_icon’;
    }
    add_filter( ‘bgmp_featured-icon-size’, ‘resize_bgmp_icons’ );

    I haven’t tested that, but that’s the gist of it. That all may need to run after the after_setup_theme hook, but I’m not sure off the top of my head.

    That doesn’t take effect retroactively, though, the images would need to be deleted and re-uploaded, or re-processed with the Regenerate Thumbnails plugin.

    Thread Starter Rogier Noort

    (@rogier-noort)

    Hi Ian.., thanks for the reply (again).
    Your suggestion for (re)uploading the images prompted me to check via FTP (it would have been a bit much to relink all 300+ placemarks with a new image).

    The plugin used a 150×150 version of the image, I simply renamed the original to filename-150x150.png and the plugin picked that one.

    Still no idea why this happened, there is no apparent reason for it.
    But this does the trick, it’s looking good again.

    Thanks for the assistance.

    Plugin Author Ian Dunn

    (@iandunn)

    Glad to hear it 🙂

    Plugin Author Ian Dunn

    (@iandunn)

    BTW: There’s also a couple filters that can be used to set the icons programatically, which may come in handy if you want to make adjustments in the future, or if you want to avoid manually setting it on hundreds of markers:

    * bgmp_default-icon
    * bgmp_get-map-placemarks-individual-placemark

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Unusual lare placemarks’ is closed to new replies.