Jump to content

Google map infobox; extra content | Wordpress, The X


GWONG

Recommended Posts

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.

 

default-google-map.png

But i want to show an Text, Hyperlink and logo like this:

 

develop-google-map.png

 

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

Link to comment
Share on other sites

If the screen is blank that usually means there's a fatal error and you're not displaying error messages. It's probably best to figure out if your server is using an error log and find that error log to see what the problem is.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...