• davy_yg

    (@davy_yg)


    Hi, all –

    I have a dillema that I would like to ask:

    My about subpages:

    About

    Only works if I turn off:

    wp_enqueue_script(‘slideshow_script’); function. (in localhost)

    It still does not work live. Why ?

    The dillema is I need that function for the front page or home if I turn it off then, the front slideshow will not works. Any body has any solution how to keep the slideshow works without meshing up the about subpages (in localhost) ?

    Anyone has other solution ?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter davy_yg

    (@davy_yg)

    There is another page:

    // for practice
    wp_enqueue_script(‘jquery1_script’);
    wp_enqueue_script(‘jqfaq_script’);

    // for front page
    wp_enqueue_script( ‘jquery17’ );
    wp_enqueue_script( ‘Cycle_script’, get_template_directory_uri

    // for about
    //wp_enqueue_script(‘jquery_script’);
    wp_enqueue_script(‘accordion_script’);
    wp_enqueue_script(‘dropdownnav_script’);

    With that code: practice & front page works but about does not.

    If I take off the // in wp_enqueue_script(‘jquery_script’);
    Then, only about works the rest does not.

    I would like the whole thing works any idea how ?

    Thread Starter davy_yg

    (@davy_yg)

    Here is a clue from JQuery forum:

    your wordpress register function is meaningless, the browser has no idea how you generate the html page, and doesn’t care. Neither does it help here for any troubleshooting here in forum

    You need to be paying attention to what is sent to browser, in page source. Focus on the scripts there, not in your wordpress plugin files. You should also look in browser console for errors.

    Your page throws an immediate error when it loads which gives an immediate clue where to look. You have a script tag inside a js file which makes it invalid

    No idea what it means and what should I do. Can anyone help me showing me what to do ?

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘function dillema’ is closed to new replies.