• I am trying to add some fields to the current.html template. To start I just copied the current.html file over into my theme into a wunderground folder as indicated, so the file is at wp-content/themes/mytheme/wunderground/current.html

    The issue is that the plugin doesn’t seem to be picking up on my new template. I added an additional class (without changing any other code) in so I would be able to tell when the new template was used.

    I thought cache might be the issue, so I even reset the cache to 60 seconds:

    function mytheme_wunderground_cache_time($cache_time) {
        return 60;
    }
    add_filter('wunderground_cache_time', 'mytheme_wunderground_cache_time');

    Has anyone else successfully used customized templates? It seems pretty simple and I’m following the directions in the template itself, but it doesn’t seem to be working.

    Any and all help appreciated!

    https://wordpress.org/plugins/wunderground/

Viewing 1 replies (of 1 total)
  • Amanda – I can vouch that custom templates do work. I customized table-vertical, and use a combination of plugin and child theme files.

    Your file location looks fine. Could the issue be your shortcode?

Viewing 1 replies (of 1 total)
  • The topic ‘Custom templates in theme?’ is closed to new replies.