Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Lance Cleveland

    (@charlestonsw)

    Please provide a link to your site.

    Thread Starter Michael Aronoff

    (@masterk)

    The page is at https://www.intlwindow. com/dealer-locator/
    (remove the space for proper link)

    I hard coded a working search function into the wordpress page and turned off the search and radius box I had on. But if you look at the code you can see:

    <div id='address_search'>
    
                          <div id='addy_in_address' class='search_item'>
                    <input type='hidden' id='addressInput' value='' />
                </div>
                         <div id='addy_in_address' class='search_item'>
                    <input type='hidden' id='addressInput' value='' />
                </div>
                         <div id='addy_in_address' class='search_item'>
                    <input type='hidden' id='addressInput' value='' />
                </div>
                   </div>

    I used CSS to hide the whole div since even though the inputs were hidden there was still extra whitespace.

    Plugin Author Lance Cleveland

    (@charlestonsw)

    I just spent a full day debugging a similar issue on another site. Their theme was manually calling shortcodes out of context and thus calling the render_shortcode() function in SLP multiple times.

    This will not work properly as there are global variables that are not reset on each shortcode call. The shortcode should only be called in the main content loop.

    Thread Starter Michael Aronoff

    (@masterk)

    I am using the shortcode [STORE-LOCATOR] one on my page. How can I fix the problem? Should I use a php call in a custom template page? If so what would I use?

    Thanks

    Plugin Author Lance Cleveland

    (@charlestonsw)

    Just using [STORE-LOCATOR] in the page content should work fine. Something in your theme or with another plugin is forcing the shortcode to be called prematurely.

    Thread Starter Michael Aronoff

    (@masterk)

    Yes, I understand. So what are my solutions. Where should I look to fix the theme or can I do a workaround by not using a shortcode but using a PHP code instead?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search boxes tripple?’ is closed to new replies.