Marlem on "[Plugin: Gwolle Guestbook] write a new post button stopped working"

ساخت وبلاگ

Hi,write a new post button stopped working.
See https://freeandeasyband.nl

https://wordpress.org/plugins/gwolle-gb/

Hi, looking at the Console in the Inspector, it does list some waings 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.

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()

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);

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.

Marlem
Member
Posted 15 minutes ago #

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.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 223 تاريخ : سه شنبه 15 تير 1395 ساعت: 4:40