dujames88
Forum Replies Created
-
Forum: Plugins
In reply to: [Modal Guten Block] Scale on mobileThanks!!
Forum: Plugins
In reply to: [Modal Guten Block] Scale on mobileThanks for your reply! Width, mainly. Is there a css class I can target to reduce the modal width under X screen size?
Forum: Plugins
In reply to: [Site Reviews] Display Parent page title with summaryDone ??
Forum: Plugins
In reply to: [Site Reviews] Display Parent page title with summaryGot it sorted in PHP, thanks again. I’d still like to buy you a beer/coffee for this fantastic plugin.
Forum: Plugins
In reply to: [Site Reviews] Display Parent page title with summaryFantastic, I owe you a beer, please send a link to your kofi page or whatever!!! Is there any way to change the sentence it displays? I.e.:
“Review of Amsterdam and ‘t Stekkie”
to
“Review of ‘t Stekkie, Amsterdam”Forum: Plugins
In reply to: [Site Reviews] Display Parent page title with summaryHi, I’ve got the second issue sorted now (can add for others if curious) but could still really use help with first issue. If you could point me in the direction of which file I need to edit for the display of the Latest Review block would be great ??
Forum: Plugins
In reply to: [Site Reviews] Display Parent page title with summaryHi,
Thanks for your reply! I’ve tried this solution with 3 different javascript snippet plugins as well as in functions.php and it’s still not working :(. Any other ideas? Also, do you have a solution for question 1? Thanks again for your time.
Forum: Plugins
In reply to: [Site Reviews] Display Parent page title with summaryHi,
Thanks for your response! I just tried your solution for question 1, but the Latest Review block is still not displaying the name of the parent page beside the assigned page.
As regards 2, I’ll just type it out and it can be moved to a new post if necessary:
I’ve tried three different ways to reload the page after form submission but I can’t get it to work.
Method 1:
Adding this to functions.php:add_action(‘site-reviews/review/created’, function ($review, $command) {
header(“Refresh:0″);
exit;
}, 10, 2);Result: Submit button spins.
Method 2.
Adding this javascript to footer with Astra (theme) Hooks:document.addEventListener(‘site-reviews/after/submission’, function (event) {
if (false !== event.detail.errors) return; // stop if there were errors
location.reload(true); // reload the page from the server instead of the browser cache.
});Result: prints this literally to footer.
Method 3.
add_action(‘site-reviews/review/created’, function ($review, $command) {
echo ‘<script type=”text/javascript”> location.reload(true); </script>’;}, 10, 2);
Result: Submit button spins.
Any suggestions?
Forum: Plugins
In reply to: [Site Reviews] Display Parent page title with summaryI also have another question about refreshing page. Should I post that here or make a new topic?