Forum Replies Created

Viewing 15 replies - 31 through 45 (of 48 total)
  • Thread Starter Patrick Whitty-Clarke

    (@zerodegreeburn)

    Some sort js validation like gravity forms has for required fields would be fine in my opinion. Cheers

    Thread Starter Patrick Whitty-Clarke

    (@zerodegreeburn)

    I just tried Version 2, but I still get the js error.

    I get jquery and jquery.migrate loaded into the header, which I’d like to avoid whether its version 1 or 2 and whether load scripts in footer is checked or not. Jquery cycle and rotating tweets appear above my script, I can’t figure out how to get mine above them.

    <script type='text/javascript' src='https://dpa.dev/wp-content/plugins/rotatingtweets/js/jquery.cycle2.renamed.js'></script>
    <script type='text/javascript' src='https://dpa.dev/wp-content/plugins/rotatingtweets/js/jquery.cycle2.scrollVert.renamed.js'></script>
    <script type='text/javascript' src='https://dpa.dev/wp-content/plugins/rotatingtweets/js/jquery.cycle2.carousel.renamed.js'></script>
    <script type='text/javascript' src='https://dpa.dev/wp-content/plugins/rotatingtweets/js/rotatingtweets_v2.js'></script>
    <script type='text/javascript' src='https://dpa.dev/wp-includes/js/admin-bar.min.js'></script>
    <script type='text/javascript' src='https://dpa.dev/wp-content/themes/dpa/assets/js/build/production.min.js'></script>

    However, I just tried your development version and it fixed the issue. Thanks!

    I managed to get jquery to stop loading by using this answer.

    I’d suggest adding in a minified version of your script in your plugin, and maybe trying to get all of the js into one file. At the moment it’s loading 4 js files which is 4 (unminified) HTTP requests:

    <script type='text/javascript' src='https://dpa.dev/wp-content/plugins/rotatingtweets/js/jquery.cycle2.renamed.js'></script>
    <script type='text/javascript' src='https://dpa.dev/wp-content/plugins/rotatingtweets/js/jquery.cycle2.scrollVert.renamed.js'></script>
    <script type='text/javascript' src='https://dpa.dev/wp-content/plugins/rotatingtweets/js/jquery.cycle2.carousel.renamed.js'></script>
    <script type='text/javascript' src='https://dpa.dev/wp-content/plugins/rotatingtweets/js/rotatingtweets_v2.js'></script>

    Thanks for the help!

    Thread Starter Patrick Whitty-Clarke

    (@zerodegreeburn)

    Hi Martin,

    Yes I’d found the load in footer option! ??

    I call my script global-js :

    function pwc_theme_name_scripts() {
    wp_enqueue_script( ‘global-js’, get_template_directory_uri() . ‘/assets/js/build/production.min.js’, array(), ‘1.0.0’, true );
    }
    add_action( ‘wp_enqueue_scripts’, ‘pwc_theme_name_scripts’, 0 );

    When I load a page with rotating tweets on, I get the following error:

    Uncaught TypeError: undefined is not a function rotating_tweet.js:48(anonymous function) rotating_tweet.js:48eb.extend.each production.min.js:1eb.fn.eb.each production.min.js:1(anonymous function) rotating_tweet.js:5j jquery.js:2k.fireWith jquery.js:2m.extend.ready jquery.js:2J

    This must be because of jquery being loaded in the header, along with jquery-migrate.min.js:

    <script type=’text/javascript’ src=’https://dpa.dev/wp-includes/js/jquery/jquery.js’></script&gt;
    <script type=’text/javascript’ src=’https://dpa.dev/wp-includes/js/jquery/jquery-migrate.min.js’></script&gt;

    I can’t quite work out where to apply your code, this is 1839 to 1853 for me:

    foreach($option as $stringname => $contents) {

    $ageindays = (time()-$contents[‘datetime’])/60/60/24;

    if($ageindays > $targetageindays) unset($option[$stringname]);

    };

    $numberidentities = count($option);

    if(WP_DEBUG) echo “<!– There are now “.$numberidentities.” identities cached –>”;

    update_option($optionname,$option);

    }

    Thanks for the help.

    So essentially if you already have a jquery script or plugin that doesn’t work with jquery 2.0+ then you can’t use that and EA on the same page/site?

    Thread Starter Patrick Whitty-Clarke

    (@zerodegreeburn)

    Thanks, that worked well.

    Just out of interest, do you know if the Sites menu being hidden to non-super admins is standard WordPress behaviour? (I couldn’t find any info on it via google)

    I find it ridiculous that the documentation has zero information on how to add a service. I am stuck at the moment, and not able to add any bookings due to the error message “There are no services available for the period you selected.” But, I have looked everywhere in the administration panel and can’t find anywhere to add a service?

    I think you should spend 5 minutes to create a youtube video that shows how to add a simple functional calendar, with bookings enabled from the front end.

    This is obviously a good plugin as the reviews are great, but I must be being blind or something because I can’t use it (and I’m a developer!)

    I’ve been investigating this issue for a client and it’s definitely to do with gravity forms. Adding that code to your theme’s functions.php file will not interfere with Gravity Forms updates in any way (you are not editing any of the plugins files) so you can safely add it if you like ??

    EDIT: Oh actually I see you don’t add it to functions.php you do have to edit the plugin… I will update once I find out where the actual setting has been set, it must be on one of the forms somewhere.

    I used them so thanks very much for posting them, but for some reason I can’t select the Manual Trigger option – no button appears. If I select the default option the products appear as you scroll down, which is good enough I guess.

    Hi,

    What pro plugin did you use tekover?

    For the record mine worked with slightly less specific selectors, so:

    ul.products
    .woocommerce-pagination
    .woocommerce-pagination a.next
    ul.products li.product

    The trouble is now the #infscr-loading div is created inside the UL, which kind of screws up the layout (and I think is invalid HTML).

    I managed to make it look OK with this CSS, but even so I’d like to get it to display after the closing ul…

    #infscr-loading {
    	display: block !important;
    	clear: left;
    	font-size: 1em;
    	text-align:center;
    }

    Grumbledock, did you manage to get Manual Trigger working with woocommerce? I tried changing the content selector to just ul.products but nothing initialises for me (no errors in console either).

    You might be using a ul li selector instead of just a standard div as there are products:

    this worked for me with woocommerce and maya:

    Content Selector
    #content ul.products

    Navigation Selector
    .woocommerce-pagination

    Next Selector
    .woocommerce-pagination a.next

    Item Selector
    ul.products li.product

    I agree I’d love this, although a lot of sites that use infinite scroll seem to have this problem (Facebook for one).

    I’m using the latest update and getting the blank pages issue. In my case I didn’t notice any difference whether adding a trailing slash or not, random pages (often the home page) would just be completely blank. Not even <html> and standard tags with no content, just nothing in the source.

    I’d be happy to help with testing and submit bug reports, I am on a shared folder but can try and get access to log files if this helps. I have the plugin enabled with all settings except for Page Cache (Disk/Enhanced didn’t make a difference to the issue) and that all works fine now. HTML isn’t being minified but that’s another issue altogether.

    Is there anywhere we can download the old version from? I was getting the same errors described in this thread, and now on a different server I’m getting the random blank white pages issue on some pages, which only seems to occur after visiting the page a few times.

    I have the same issue. My host doesn’t allow MultiViews (one.com) so unless I manually comment out the line

    #Options -MultiViews

    from /wp-content/cache/minify/.htaccess

    I get 500 internal server errors.

    I’ve filed a bug report already.

    Everything worked fine around 3-4 months ago when I last updated the site.

Viewing 15 replies - 31 through 45 (of 48 total)