To change the default map icon for the Divi theme
What is a Child Theme? A Child Theme is an active Theme in WordPress Appearance>Themes that has a line of code to tell WordPress to also use the specified parent Theme (installed but not activated) in WordPress Appearance>Themes. It is the method of making customizations to your Theme but still being able to accept updates from your original Theme developer.... mehr erfahren 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)