• I am setting up this plugin and I cannot get the stores to show on the side, next to the map, as it should using the default template.

    1. I’ve selected the default template, but it still shows the stores below. It’s like it will only load the “stores below” template.
    2. I made a custom template from the default template, uploaded it to my theme, added the code in the functions.php file, and I can select the new custom template in the settings, but again it does not seem to be pulling in the template – only the “stores below” template.

    Any ideas?

    Thanks,
    Julie

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter njaknjak

    (@njaknjak)

    I deleted the store-listings-below.php template and now it pulls in the default template, or the custom one I did.

    But will the “stores listings below” template be used if the plugin updates? How can this be fixed?

    Thanks.

    Thread Starter njaknjak

    (@njaknjak)

    It will not recognize my custom template. I put a different html comment in the default template and custom template and it is definitely only using the default template.

    The default template has <!-- default template --> at the start and the custom template has <!-- my template --> at the start so I can tell the difference.

    I’ve tried selecting the custom template in the settings and in the shortcode on the page. Still, it uses the default template.

    I’d really like to customize the listings in the search results, but I can’t even get the custom template to work.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you share the code you’re using to load the custom template in a gist?

    Thread Starter njaknjak

    (@njaknjak)

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you test this with a default WP theme?

    You’re 100% sure the wpsl-templates/custom.php exist in your theme folder?

    • This reply was modified 6 years, 11 months ago by Tijmen Smit.
    Thread Starter njaknjak

    (@njaknjak)

    Currently, I am using Genesis with a child theme (Elegance).

    I switched to twentyseventeen and added the code to the function file. It works:

    https://www.columbusohioecommerce.org/maptest/

    I can see the <!--mytemplate--> comment in the code.

    Guess it could be something in Genesis? Or the child theme?

    So I switched to a different Genesis child theme (Modern Studio) and it went back to using the default template instead of the custom template.

    So it’s something related to Genesis. Any ideas?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Ah, I think the issue is with the child theme path.

    Try to replace get_template_directory with get_stylesheet_directory in the code to load the template, that will likely fix it.

    Thread Starter njaknjak

    (@njaknjak)

    That fixed it.

    Thanks!!

    • This reply was modified 6 years, 11 months ago by njaknjak.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Template Doesn’t Change’ is closed to new replies.