Change default venue marker

This topic contains 3 replies, has 2 voices, and was last updated by  Jon Wilson 10 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14368

    Hello, I purchased the custom venue marker add-on and maybe should have looked into it better first.

    My client basically wants to change the default marker, that or they’ll have to go into each venue and change it.

    Is there a way to change the default marker? If not, is it obvious in the database so that I might run a query to change all the existing markers? then they could just do it as they add new venues.

    Thanks

    Jon Wilson
    #14369

    Actually it just occurred to me that I could just replace the image, duh.
    But that will only work until they do an upgrade.
    So I guess my question still stands.
    Thanks

    Jon Wilson
    #14372

    The ‘default’ image is one provided by Google, that is it isn’t hosted locally for you to replace.

    One way to provide a default image is

    add_filter( 'eventorganiser_venue_marker', 'my_default_marker', 5 );
    function my_default_marker( $marker ){
          $marker = 'http://yoursite.com/full/url/to/image.png';
          return $marker;
    }
    
    Stephen Harris
    #14374

    Excellent, Thanks for the prompt reply too.

    Jon Wilson
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.