Title: Track styling and short code issues
Last modified: January 22, 2023

---

# Track styling and short code issues

 *  Resolved [mapmaker1](https://wordpress.org/support/users/mapmaker1/)
 * (@mapmaker1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/track-styling-and-short-code-issues/)
 * Hi, I really like the plugin but am having some issues. In my admin area the 
   shortcode help is formatted incorrectly. I found the help at [https://leafext.de/extra/helper/ ](https://leafext.de/extra/helper/)
   instead.
 * ![](https://i0.wp.com/i.ibb.co/NF2VrY2/Untitled.png?ssl=1)
    1. It is not clear to me how to change the style of individual tracks in the multi
       elevation environment. I can find no mention of this at [https://leafext.de/en/multielevation/dokumentation/](https://leafext.de/en/multielevation/dokumentation/)
       or in examples using this plugin.
    2. It appears I need to create a custom theme: `In your elevation.css put the styles
       like the theme styles in [https://unpkg.com/@raruto/leaflet-elevation@2.2.8/dist/leaflet-elevation.css](https://unpkg.com/@raruto/leaflet-elevation@2.2.8/dist/leaflet-elevation.css)
       or check out Raruto's [examples](https://github.com/Raruto/leaflet-elevation)`.
       But how does one assign a specific styling to a specific track?
    3. Example: In a perfect world this would work:
 *     ```wp-block-code
       [leaflet-map width=100% height=60vh fitbounds]
       [elevation-track file="address-of-track-1.gpx" color="black"]
       [elevation-track file="address-of-track-2.gpx" color="dashed red"]
       [multielevation]
       ```
   
 * If I have many tracks maybe it makes more sense to include leaflet directly and
   not use the leaflet map and leaflet map extension plugins. I am new to leaflet
   and javascript+wordpress so I apologise if these are obvious questions. Many 
   thanks.
    -  This topic was modified 3 years, 6 months ago by [mapmaker1](https://wordpress.org/support/users/mapmaker1/).
    -  This topic was modified 3 years, 6 months ago by [mapmaker1](https://wordpress.org/support/users/mapmaker1/).

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

 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/track-styling-and-short-code-issues/#post-16397635)
 * > In my admin area the shortcode help is formatted incorrectly.
 * This should not be so and can have many causes. The server cache (not one from
   a caching plugin), an incomplete installation of WordPress or the plugin, some
   settings in the server configuration. Or two plugins are not compatible. I don’t
   know. You are the first with this problem. Open the developer console of your
   browser (Strg+Shift+I on Firefox). Are there any errors?
 * > It appears I need to create a custom theme:
 * There are 7 default themes to display an elevation profile of **one** track. 
   You can change the colors in the backend /wp-admin/admin.php?page=extensions-
   leaflet-map&tab=elevationtheme or you can configure your own styles. The latter,
   however, is not for beginners. And I think, you don’t need it.
 * `multielevation` uses these colors for the charts only.
 * For `multielevation` you can change the color of the **highligted** track: /wp-
   admin/admin.php?page=extensions-leaflet-map&tab=multielevation
 * You can’t influence the color of a track in `multielevation`, this is a fixed
   function.
 * You can set the color of the track with `leaflet-gpx`, but there is not an elevation
   profile.
    -  This reply was modified 3 years, 6 months ago by [hupe13](https://wordpress.org/support/users/hupe13/).
    -  This reply was modified 3 years, 6 months ago by [hupe13](https://wordpress.org/support/users/hupe13/).
 *  Thread Starter [mapmaker1](https://wordpress.org/support/users/mapmaker1/)
 * (@mapmaker1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/track-styling-and-short-code-issues/#post-16402607)
 * Many thanks for the reply. There are errors on the shortcode helper page about
   not loading pngs from the opentopology map – “Failed to load resource:…”. I think
   this is for the first example at the top of the page. I’m not concerned about
   this problem, I just thought I should let you know.
 * “You can’t influence the color of a track in `multielevation`, this is a fixed
   function.” If one was to go in search of changing these fixed settings, is there
   a natural place one should start?
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/track-styling-and-short-code-issues/#post-16402803)
 * > If one was to go in search of changing these fixed settings, is there a natural
   > place one should start?
 * [Happy coding](https://github.com/Raruto/leaflet-elevation/blob/master/libs/leaflet-gpxgroup.js#L176).
   😉

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

The topic ‘Track styling and short code issues’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [hupe13](https://wordpress.org/support/users/hupe13/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/track-styling-and-short-code-issues/#post-16402803)
 * Status: resolved