Jump to content

GWONG

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by GWONG

  1. 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

×
×
  • Create New...