• Resolved Christoph

    (@camthor)


    Hi, I use the function pronamic_google_maps_mashup to display the map with the posts, works well.
    Now I would like to change the color of the description in the balloons (which is taken from the Google maps box on the Edit Post screen – where I didn’t manage to add html). Presently the color of this text seems to collide with another part of the theme and is set to white.
    Could you please advise how to control that description’s formatting, via css or php? Any css class available for that purpose? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Remco Tolsma

    (@remcotolsma)

    By default there is no CSS class available. You can however wrap the mashup item content in an div element:

    function custom_mashup_item($content) {
    	return '<div class="mashup-item">' . $content . '</div>';
    }
    
    add_filter('pronamic_google_maps_mashup_item', 'custom_mashup_item');

    You can then adjust the styling of the mashup item in the CSS:

    .mashup-item {
      color: Red;
    }

    Good luck!

    Thread Starter Christoph

    (@camthor)

    Thanks!
    It still didn’t show up. I assume the problem is caused by the theme and it would take me a while to figure out what’s wrong.
    I managed to add the description to the $content before the </ li >. Probably not a very elegant solution but it works now.

    Plugin Author Remco Tolsma

    (@remcotolsma)

    I guess you should adjust the CSS selector, there’s probably a stronger CSS selector in your theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Formatting in balloon’ is closed to new replies.