Title: plugin not working correctly with .load() function
Last modified: August 21, 2016

---

# plugin not working correctly with .load() function

 *  Resolved [NewBornSoul](https://wordpress.org/support/users/newbornsoul/)
 * (@newbornsoul)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-correctly-with-load-function/)
 * If i use the plugin in a page, it works fine, however, i have a menu that uses
   the load function to retrieve a div of a page, where the slider is. the problem
   is, it doesn’t load the scripts correctly.
 * Menu HTML
 *     ```
       <div id="listabiodiversidade" class="listabiodiversidade">
        <ul id="listaflora" class="listaflora">
         <li id="subclasse" class="subclasse" >
          <div href="">Árvores</div>
            <ul>
             <li class="planta" rel="/sitepds/pagina-inicial/link-2/biodiversidade/flora/castanheiro-da-india #castanheiro-da-india" >
               <a href="#">Castanheiro da Índia</a>
             </li>
             <li rel="/sitepds/pagina-inicial/link-2/biodiversidade/flora/tilia #tilia" class="planta" >
               <a href="#">Tília</a>
             </li>
            </ul>
          </li>
   
         <li id="subclasse" class="subclasse" >
          <div href="#">Arbustos</div>
            <ul>
             <li class="planta">
               <a href="#" class="planta">Ligustruum</a>
             </li>
             <li class="planta">
               <a href="#" class="planta">Hebe</a>
             </li>
            </ul>
          </li>
   
         <li  id="subclasse" class="subclasse">
          <div href="#">Flores</div>
            <ul>
             <li class="planta">
               <a href="#" class="planta">Cana Índica</a>
             </li>
             <li class="planta">
               <a href="#" class="planta">Amores Perfeitos</a>
             </li>
            </ul>
          </li>
         </ul>
       </div>
       ```
   
 * header jscript
 *     ```
       //file to load:
       jQuery(function(){
              jQuery('.planta').click(function(){
                  jQuery('#infoplantas').load(jQuery(this).attr('rel'));
       			return false;
               });
           });
   
       //fim de file to load
       ```
   
 * loaded page(this is the html i wrote using wordpress)
 *     ```
       <div id="tilia" class="infoplantas" charset=utf-8>
   
       [promoslider slider="castanheiro-da-india" width="400px" Height="250px" display_nav="thumb"]
   
       <h3>Tilia</h3> 
   
       <h4>bla bla bla whiskas saquetas</h4>
   
       CARACTERÍSTICAS GERAIS
   
       </div>
       ```
   
 * [http://wordpress.org/extend/plugins/promotion-slider/](http://wordpress.org/extend/plugins/promotion-slider/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [NewBornSoul](https://wordpress.org/support/users/newbornsoul/)
 * (@newbornsoul)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-correctly-with-load-function/#post-3895144)
 * At least is there a way of using the library manually, so i can get the photos
   to slide? please its urgent that i get this working…

Viewing 1 replies (of 1 total)

The topic ‘plugin not working correctly with .load() function’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/promotion-slider.svg)
 * [Promotion Slider](https://wordpress.org/plugins/promotion-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/promotion-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/promotion-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/promotion-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/promotion-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/promotion-slider/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [load](https://wordpress.org/support/topic-tag/load/)
 * [nav](https://wordpress.org/support/topic-tag/nav/)

 * 1 reply
 * 1 participant
 * Last reply from: [NewBornSoul](https://wordpress.org/support/users/newbornsoul/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-not-working-correctly-with-load-function/#post-3895144)
 * Status: resolved