Hi There,
I'am developing an new wordpress website with The X from theme.co
Default i only can add text content to my google map infobox.
But i want to show an Text, Hyperlink and logo like this:
I want to use Advanced Custom Fields to accomplish this and tried to added the following code to my childthemes functions.php
// Website in infobox// =============================================================================add_action('init', 'remove_parent_theme_shortcodes');function remove_parent_theme_shortcodes() { remove_shortcode( 'x_google_map' ); add_shortcode( 'x_google_map', 'custom_google_map');}function custom_google_map( $atts ) { the_field('website'); <-// Advanced Custom Fields code //}
But no results and the site gets a whitescreen.
Thanks in advance,
Gino