Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mjnswp

    (@mjnswp)

    I’m using Advanced Custom Fields PRO Version 6.3.8.

    It works fine on every other field and fieldtype, the problem occurs on wysiwyg fields within an acf group (and probably repeater). I just tried changing the group and repeater settings to “treat as body text”, just in case (because it was on “do not filter” per default), but its still not working.

    Thread Starter mjnswp

    (@mjnswp)

    well I’m centering the map around all markers with fitbounds, but the center is ofcourse way off when theres markers in the middle of the worldmap. not sure its a better user experience, just some specific need for my current project

    Thread Starter mjnswp

    (@mjnswp)

    Oh enabling the class names solves the Problem for me, didn’t know that was possible. Thanks a lot!

    Thread Starter mjnswp

    (@mjnswp)

    Hey,
    thanks for the quick reply.

    Sadly that wouldn’t solve my problem. For example I would like the default button color to be var(–maincolor) from my child-theme css file. Exporting and importing settings wouldn’t help, since that variable ofcourse changes from customer to customer.

    It’s kinda hard targeting the banner elements with css, because they mostly don’t have any classes or ids.

    Thread Starter mjnswp

    (@mjnswp)

    yeah seems like a Real Cookie Banner problem. thanks for your reply anyways!

    if anyone else comes across this problem. it’s working if I wrap the popup html in htmlspecialchars().
    but get_the_permalink was giving me errors, so I also had to cut the permalink and only use the path, like:

    
    // cut permalink
    $postlink = get_the_permalink();
    $postlinkPath = parse_url($postlink)['path'];
    
    // marker popup html in variable
    $markerPopupContent = '<span class="infobox_ort">'.$acf_field_ort.'</span><h4 class="infobox_title">'.get_the_title().'</h4><div style="font-size:1.4rem;margin-bottom:1rem;">'.$acf_field_veranstaltungsadresse.'</div><a href="'.$postlinkPath.'" class="button inView" style="background-color:'.$acf_field_farbcode.';">Info</a>';
    
    // output popup variable with htmlspecialchars()
    echo do_shortcode('[leaflet-marker address="'.$acf_field_veranstaltungsadresse.'" svg background="'.$acf_field_farbcode.'"]'.htmlspecialchars($markerPopupContent).'[/leaflet-marker]');
    Thread Starter mjnswp

    (@mjnswp)

    the problem seems to be the content blocker from Real Cookie Banner. do you think there’s a way you could help me make it work?

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