To change the default map icon for the Divi theme, open the functions.php file of the child theme and add this code:
add_action( 'init', 'process_marker_image' );
function process_marker_image() {
$root = realpath($_SERVER['DOCUMENT_ROOT']);
$myfile = $root.'/wp-content/themes/Divi/includes/builder/images/marker.png';
$content = file_get_contents($root.'/wp-content/themes/Divi-child/images/marker.png');
file_put_contents($root.'/wp-content/themes/Divi/includes/builder/images/marker.png', $content);
}
In which you enter the path of your symbol in the variable $content at the position “/wp-content/themes/Divi-child/image/marker.png'”must be changed
Dieser Beitrag ist auch verfügbar auf: Deutsch (German)