GWONG Posted October 22, 2015 Share Posted October 22, 2015 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 Link to comment Share on other sites More sharing options...
justsomeguy Posted October 22, 2015 Share Posted October 22, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now