• Resolved VIPStephan

    (@10010110)


    I’m new to this plugin. Am I understanding it correctly that you execute the shortcode instead of the regular loop in the templates? This seems to completely break the functionality if JS is disabled for whatever reason. Is there a fallback for that case (like default loop with default pagination)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @10010110,
    yea, that’s pretty much the idea.
    You would either your own query to handle this or use the Prelaoded add-on.

    Cheers,

    I’m setting a variable into the PHP Session to check if JavaScript is enabled.
    Then I’m simply checking if the variable is not send (no JavaScript available).

    If thats the case I do my default loop in <noscript> tags.

    Please note that I can’t provide my full code, since my theme is customized very strong.

    
    // If no JavaScript is enabled load the customers via PHP
    if(!isset($_SESSION['java_script_activated'])) {
    		
    // Output posts in <noscript> tags with PHP
    
    }
    
    Plugin Author Darren Cooney

    (@dcooney)

    Hi Tobias,
    Nice idea and thanks for sharing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fallback if JS disabled’ is closed to new replies.