Jump to content

Google map infobox; extra content | Wordpress, The X

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.



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,



Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...