1. Home
  2. Knowledge Base
  3. WordPress
  4. DIVI
  5. WordPress – To change the DIVI Map icon

WordPress – To change the DIVI Map icon

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)

Was this article helpful?

Related Articles

Submit a Comment

Your email address will not be published. Required fields are marked *

Published on - 7. Oct 2021
Modified on - 29. Mar 2024
Views - 76
Likes - 0

Do you need help?

Kontaktiere uns gerne :-)
Contact Support
Skip to content