Forum Replies Created

  • Hello Magda,

    it works without errors in the console now, but I still have to leave the ‘Map template location’ field empty. Otherwise it displays the google world map, but not the location I filled in.

    I guess the reason was the child theme, because I still had demo content entries in the map from the parent theme and deleted them now.

    Sorry for missing website access, it still runs on a localhost.

    Best regards,
    D.

    This reply has been marked as private.

    Hello Magda,

    it’s working now, but only if I leave the ‘Map template location’ field empty.

    Checked the console again and get this error:

    InvalidValueError: initMap is not a function

    Best regards,
    D.

    Hello Magda,

    thanks, I will try to do it like this.

    I already asked the premium support via e-mail for a quote, but haven’t got an answer yet. So I’ll wait and we’ll see if it works..

    Best regards,
    D.

    Thanks, now I found it, the filename is ‘ctGoogleMapsShortcode.class.php‘.
    I put in my API Key, now the map is showing up, but not the location.

    I get this console error:

    InvalidValueError: setCenter: not a LatLng or LatLngLiteral: not an Object

    I filled in Map template location, latitude and longitude. Do you have any idea what’s wrong?

    Best regards,
    D.

    Sorry, but I can’t find the ctGoogleMapsShortcode.php to enter the API Key.

    Hello Magda, that sounds great! Thanks for your help!!!

    Did you try it with the code above or on your version?
    So I have to use the same folder structure from the parent theme overriding files?

    Best regards,
    D.

    This reply has been marked as private.

    Hello Magda, thanks for your reply!
    I got the gallery working, fine.

    Your child theme documentation means an older way by using the @import-function. The WordPress codex says, that this is no longer best practice and you should add a wp_enqueue_scripts action in the documentation.

    I try use the following code generated by a plugin and want to make sure that every function is included and can be overridden in the child, therefore I have to use the same folder structure in the child like in your documentation I guess?

    Here is the code in the functions.php of the child:
    <?php
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:

    if ( !function_exists( 'child_theme_configurator_css' ) ):
    function child_theme_configurator_css() {
    wp_enqueue_style( 'chld_thm_cfg_child', trailingslashit( get_stylesheet_directory_uri() ) . 'style.css', array( ) );
    }
    endif;
    add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css' );

    // END ENQUEUE PARENT ACTION

    It would be great, if you could help get it working. Maybe it works already? Didn’t try it out, because I want to make sure everthing is fine getting started with my own content.

    Best regards,
    D.