Forum Replies Created

Viewing 15 replies - 16 through 30 (of 270 total)
  • Thread Starter nootkan

    (@nootkan)

    Yes I’ve tried all that. Decided to remove your plugin instead.

    • This reply was modified 2 years, 4 months ago by nootkan.
    Thread Starter nootkan

    (@nootkan)

    Just upgraded and this is still happening. When are you going to fix this?

    Thread Starter nootkan

    (@nootkan)

    Thanks for the reply.

    It turns out to be my error not the theme.

    I was changing the example post to my own instead of creating a new one.

    After I created a new post everything was back to normal.

    Like what I see so far, nice fast theme.

    I found them under uploads>>shapla when I was searching for them.

    Thread Starter nootkan

    (@nootkan)

    Okay thanks.

    Thread Starter nootkan

    (@nootkan)

    Marko, thanks for your reply.

    After configuring the plugin to my theme with all the instructions provided it gave me poor results in the page speed insights so I put everything back to the default but still showing poor results.

    When I deleted your plugin my problems went away and I now have a performance score of 98.

    I’ve read that it is not good to not have a caching plugin so I am wondering why your plugin conflicts with the page speed insights tool?

    Thread Starter nootkan

    (@nootkan)

    Actually once I emptied your plugin cache my performance increased to an acceptable level (98) with 0 CLS.

    So I guess I didn’t need to deal with the google fonts after all.

    However, I noticed when I deactivated your plugin the performance score dropped and when I activated it again it went back to its original acceptable score previously.

    Must be something else your plugin does other than deal with google fonts.

    • This reply was modified 2 years, 7 months ago by nootkan.
    Thread Starter nootkan

    (@nootkan)

    Thanks threadi and mrtom414, between the two of you I was able to get something to work however when I checked my page speed insights again the page speed time had increased even though the render blocking issues had disappeared.

    So I am going to stick with what I have configured for now (98 and all green) and leave well enough alone.

    Appreciate all your support.

    Thread Starter nootkan

    (@nootkan)

    I have whatever version is available from the wp plugins page for your plugin.

    I think I figured it out and thanks for the link.

    Update: when checking my page speed insights again it is telling me this file is a render blocking issue:

    wp-content/uploads/omgf/shapla-fonts/shapla-fonts.css?ver=1649559414

    Is that supposed to happen?

    • This reply was modified 2 years, 7 months ago by nootkan.
    Thread Starter nootkan

    (@nootkan)

    threadi, thanks for your reply.

    The snippet (which I didn’t write but found on another website) I am trying place in the functions file is supposed to defer css and fix my rendering issues with page speed insights.

    It works fine on an html page I created but my lack of php skills is making it tough to work properly in wordpress.

    I’ve tried three different popular plugins but each one lowered my performance score from 96 to 78 so I wanted to see if I could just add a snippet in the child theme function file to defer the css and fix my rendering issue which should bring up my performance score.

    I tried your example with this but you were right it caused a critical error:

    function wpb_adding_scripts() {
    wp_register_script('my_amazing_script', get_template_directory_uri() . '/js/amazing_script.js', array('jquery'),'1.1', true);
    wp_enqueue_script('<script>
          var cb = function() {
            var l = document.createElement('link'); l.rel = 'stylesheet';
            l.href = 'wp-content/uploads/omgf/shapla-fonts/shapla-fonts.css?ver=1649559414';
            var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
          };
          var raf = requestAnimationFrame || mozRequestAnimationFrame ||
              webkitRequestAnimationFrame || msRequestAnimationFrame;
          if (raf) raf(cb);
          else window.addEventListener('load', cb);
        </script>
    <script>
          var cb = function() {
            var l = document.createElement('link'); l.rel = 'stylesheet';
            l.href = 'wp-content/themes/shapla/assets/font-awesome/css/all.min.css?ver=5.5.0';
            var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
          };
          var raf = requestAnimationFrame || mozRequestAnimationFrame ||
              webkitRequestAnimationFrame || msRequestAnimationFrame;
          if (raf) raf(cb);
          else window.addEventListener('load', cb);
        </script>
    <script>
          var cb = function() {
            var l = document.createElement('link'); l.rel = 'stylesheet';
            l.href = 'wp-content/themes/shapla/assets/css/main.css?ver=2.0.1';
            var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
          };
          var raf = requestAnimationFrame || mozRequestAnimationFrame ||
              webkitRequestAnimationFrame || msRequestAnimationFrame;
          if (raf) raf(cb);
          else window.addEventListener('load', cb);
        </script>
    <script>
          var cb = function() {
            var l = document.createElement('link'); l.rel = 'stylesheet';
            l.href = 'wp-content/themes/shapla/style.css?ver=5.9.3';
            var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
          };
          var raf = requestAnimationFrame || mozRequestAnimationFrame ||
              webkitRequestAnimationFrame || msRequestAnimationFrame;
          if (raf) raf(cb);
          else window.addEventListener('load', cb);
        </script>
    <script>
          var cb = function() {
            var l = document.createElement('link'); l.rel = 'stylesheet';
            l.href = 'wp-content/uploads/shapla/css/customize-style-6253133c6502a.css?ver=1649611580';
            var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
          };
          var raf = requestAnimationFrame || mozRequestAnimationFrame ||
              webkitRequestAnimationFrame || msRequestAnimationFrame;
          if (raf) raf(cb);
          else window.addEventListener('load', cb);
        </script>
    <script>
          var cb = function() {
            var l = document.createElement('link'); l.rel = 'stylesheet';
            l.href = 'wp-content/themes/shapla-child/style.css?ver=5.9.3';
            var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
          };
          var raf = requestAnimationFrame || mozRequestAnimationFrame ||
              webkitRequestAnimationFrame || msRequestAnimationFrame;
          if (raf) raf(cb);
          else window.addEventListener('load', cb);
        </script>');
    }
    
    add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );

    Also took the js code snippet and placed it inside an external js file and tried calling it this way but that didn’t work either.

    function wpb_adding_scripts() {
    wp_register_script('defer-css-js.js', get_template_directory_uri() . '/js/amazing_script.js', array('jquery'),'1.1', true);
    wp_enqueue_script('defer-css-js.js');
    }
    add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );
    • This reply was modified 2 years, 7 months ago by nootkan.
    • This reply was modified 2 years, 7 months ago by nootkan.
    • This reply was modified 2 years, 7 months ago by nootkan.
    • This reply was modified 2 years, 7 months ago by nootkan.
    Thread Starter nootkan

    (@nootkan)

    Yeah I had already read that documentation and set up your plugin with it.

    I couldn’t figure out how to allow instant payment via paypal express check out with your plugin on the check out page.

    I found another plugin that does exactly what I wanted.

    Thanks for your reply.

    • This reply was modified 2 years, 7 months ago by nootkan.
    Thread Starter nootkan

    (@nootkan)

    Hi Mirko, thanks for your reply.

    I should have stated in my previous post that I tried what you suggest before I posted but wasn’t satisfied with the results. Appreciate your support very much though – thanks.

    I decided to try and find a better plugin for paypal express that places the express button on the check out page as the one I am using now doesn’t do this.

    Once I found the right plugin I was able to not worry about the billing details as the instant payment method now exists on the check out page. And is functional without filling in the billing details.

    • This reply was modified 2 years, 7 months ago by nootkan. Reason: type O
    • This reply was modified 2 years, 7 months ago by nootkan.
    Thread Starter nootkan

    (@nootkan)

    Well not sure what happened but it seems to be working now a day later than when I first created the event.

    Thread Starter nootkan

    (@nootkan)

    Awesome David, that helps a lot! Much appreciated.

    Thread Starter nootkan

    (@nootkan)

    Okay I feel a little foolish but I just added 2001 – in front of the %1$s character and it worked.

    Still would like to find some sort of explanation what those characters mean and how to know which ones to use in php.

    I did try changing them to various different characters but got errors.

    I’ve found a few websites that explain sprintf but don’t really go into detail on what the characters actually mean or if there is a library or list of them with their examples in use.

    This explanation at stack exchange provides a little more clarity but still not enough for me to completely understand their purpose.
    stack exchange

    Also read through the php manual but I have a real tough time understanding anything in that manual as I believe it was written for everyone but beginners.

    • This reply was modified 2 years, 10 months ago by nootkan.
    • This reply was modified 2 years, 10 months ago by nootkan.
    • This reply was modified 2 years, 10 months ago by nootkan.
Viewing 15 replies - 16 through 30 (of 270 total)