• Resolved afengerle

    (@afengerle)


    Hi!

    I have set up an own theme in order to (un)set the background-color of the elevation chart to “inherit”. I first tried to use plain CSS, but that didn’t work. I guess because the targets are not available at the time loading the page (Having said that, I realized that I did not use “!important” :-))

    Nonetheless, I also tried to set up an own theme. It worked for a the regular elevation shortcode, but it did have no effect on elevation-track plus multielevation (using “theme”) shortcodes. Is that behaviour known? Does it work as intended?

    Thanks, Michael

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author hupe13

    (@hupe13)

    I just tested it, it really doesn’t work with multielevation, even if you customize the function in /wp-admin/admin.php?page=extensions-leaflet-map&tab=elevationtheme:

    add_filter('pre_do_shortcode_tag', function ( $output, $shortcode ) {
    	if ( 'elevation' == $shortcode ||
    		'elevation-tracks' == $shortcode || 'multielevation' == $shortcode) {
    		custom_elevation_function();
        }
    	return $output;
    }, 10, 2);

    But with elevation-tracks it works. Thanks for the hint.

    • This reply was modified 4 years, 1 month ago by hupe13.
    Thread Starter afengerle

    (@afengerle)

    Your welcome.

    Thank you for your great work!!! I have tested a few map plugins and (currently ;-)) yours is my favourite.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Own theme does not work for multielevation’ is closed to new replies.