Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi, looking at the Console in the Inspector, it does list some warnings and errors. For example that the Google Maps API is loaded multiple times.

    The real problem however is that the JavaScript of the guestbook isn’t loaded. You are using a AJAX theme. But the AJAX refresh doesn’t add the javascript for this plugin, that is only loaded on the guestbook page.

    When you browse directly to https://freeandeasyband.nl/gastenboek/ it is being loaded, and it works.

    A solution could be to just call the gwolle_gb_register() on every pageload. You could make a function for that in the wp_enqueue action.

    Thread Starter Marlem

    (@marlem)

    Hi,is there not a gwolle javaScript reload code that i can put in the zajax plugin?

    Insert javascript or jQuery code here on ajax complete. It trigger at the end of ajax page loading ( you can use the jQuery sign $ ) EX: $(‘#loading’).hide()

    Plugin Author Marcel Pol

    (@mpol)

    No, I wouldn’t go that way.
    You are better off just loading the Gwolle CSS and JS on every page.
    So you could put in your functions.php or in a plugin this:

    function my_gwolle_gb_register() {
            wp_enqueue_script('gwolle_gb_frontend_js');
            wp_enqueue_style('gwolle_gb_frontend_css');
    add_action('wp_enqueue_scripts', 'my_gwolle_gb_register', 20);
    Thread Starter Marlem

    (@marlem)

    Hi, i put the code in css plugin, but it is only working when i refresh the browser, so first time i open the website it is not working and when i refresh the browser it works.

    Thread Starter Marlem

    (@marlem)

    Hi, if I first click on the guest book page and refreshed than does the plugin further good but I have to if I use the website for the first time open the guestbook page refresh before it works well, is here maybe a code to the guestbook at the first time in to load immediately.

    Plugin Author Marcel Pol

    (@mpol)

    Hi, the code pasted works for what you want, it just has a syntax error:

    function my_gwolle_gb_register() {
            wp_enqueue_script('gwolle_gb_frontend_js');
            wp_enqueue_style('gwolle_gb_frontend_css');
    }
    add_action('wp_enqueue_scripts', 'my_gwolle_gb_register', 20);

    I tested this with the hueman theme and the free zajax plugin.

    Thread Starter Marlem

    (@marlem)

    Hi when I empty the history in browser and then the 1st time the guestbook page refreshed than the plugin works well, it makes no difference to me if I use the code or not, maybe I can get somewhere private my wordpress login details so you can watch yourself.

    Plugin Author Marcel Pol

    (@mpol)

    When on my first visit I go to the home page, the JS/CSS are not loaded. Browsing after that to the Guestbook page it won’t be loaded either.

    Where did you paste the above code? Because apparently it is not working for you.

    Thread Starter Marlem

    (@marlem)

    Hi, i put the code,

    function my_gwolle_gb_register() {
    wp_enqueue_script('gwolle_gb_frontend_js');
    wp_enqueue_style('gwolle_gb_frontend_css');
    }
    add_action('wp_enqueue_scripts', 'my_gwolle_gb_register', 20);

    In the “SiteOrigin CSS plugin” but it gives Unexpected token errors.

    Hi Marlem,

    Alex from SiteOrigin here.

    It looks like you’ve tried to add PHP to our CSS editor. This won’t work as the CSS is output to the browser while the PHP needs to be run by the server. Basically, you’ll need to use an alternative method to do what you’re trying to do.

    We would recommend using a child theme. Here is a guide for your theme on how to create a child theme.

    Thread Starter Marlem

    (@marlem)

    Thank you all for the helping.

    I have made a child theme and put the code in the functions.php

    Now everything works perfect.

    thanks

    Plugin Author Marcel Pol

    (@mpol)

    Ah, good ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘write a new post button stopped working’ is closed to new replies.