rocketpig3
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Editing author archivesI was informed that my license has expired. So can I please get help with this issue here, assuming free support is offered?
Forum: Themes and Templates
In reply to: [GeneratePress] Editing author archivesThat page doesn’t seem to allow tickets to be logged as an email, it redirects to the forum? I have sent an email under the account issues section regardless.
Forum: Themes and Templates
In reply to: [GeneratePress] Editing author archivesI’m not necessarily using Elements, just suggesting it as a solution. I am premium but can’t make a thread there.
Forum: Plugins
In reply to: [Contextual Related Posts] CRP is using https:// to embed imagesThanks, saving settings to clear the cache worked.
Forum: Plugins
In reply to: [Contextual Related Posts] CRP is using https:// to embed imagesWe’ve always been using https with a redirect but only recently changed the site URL in general settings to the https version. It’s all images I believe. Is there a way I can PM you the URL?
Forum: Plugins
In reply to: [Contextual Related Posts] Troubleshooting mode stuck site in a redirect loopJust realised this is a problem with the Health Check plugin, although I only saw the troubleshoot option by CRP. So this post is off-topic and I can’t delete it. But would appreciate any ideas if you have any.
Forum: Plugins
In reply to: [WordPress Button Plugin MaxButtons] HTML codes are breaking Maxbutton URLsHi,
We tried this in functions.php:
/* URL > data URL MaxButtons */ $url = apply_filters('mb-url', $url, $data['url']); // passes processed url / raw url. $url = apply_filters('mb-url-' . $button_id, $url, $data['url']); add_filter('mb-url', function ($url, $dataUrl) { return $dataUrl; } );
We get the error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in wp-includes/class-wp-hook.php on line 310 and exactly 2 expected in wp-content/themes/generatepress-child/functions.php:33
Line 33 is the add_filter line. I assume we have closed the filter incorrectly or something of that nature.
Thanks
Thanks, this worked but the reset button is not styled the same as the next/previous buttons. I think our theme might be overriding it. Is there some CSS we can use to force the form’s theme for the button? We are using the default form theme.
Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Display a field if no other fields are shownThanks, the form now works. However the sliders now begin with negative values – they should start at zero. Also, when dragging the slider to the right, it then jumps back about 10-20 units when the mouse is released.
Forum: Plugins
In reply to: [Calculated Fields Form] Display a field if no other fields are shownI have translated this into what I thnk should work for my form:
(function(){ let display_40 = true; let slider1 = fieldname21-40*((fieldname3+fieldname4)-1); let slider2 = fieldname25-40*((fieldname3+fieldname4)-1); let slider3 = fieldname7-3*((fieldname3+fieldname4)-1); let slider4 = fieldname13-100*((fieldname3+fieldname4)-1); let slider5 = fieldname38-100*((fieldname3+fieldname4)-1); let slider6 = fieldname17-25*((fieldname3+fieldname4)-1); let slider7 = fieldname19-70*((fieldname3+fieldname4)-1); HIDEFIELD(fieldname28|n); HIDEFIELD(fieldname29|n); HIDEFIELD(fieldname10|n); HIDEFIELD(fieldname30|n); HIDEFIELD(fieldname32|n); HIDEFIELD(fieldname31|n); HIDEFIELD(fieldname33|n); getField(fieldname21|n).setVal(slider1); getField(fieldname25|n).setVal(slider2); getField(fieldname7|n).setVal(slider3); getField(fieldname13|n).setVal(slider4); getField(fieldname38|n).setVal(slider5); getField(fieldname17|n).setVal(slider6); getField(fieldname19|n).setVal(slider7); if(slider1>89){ SHOWFIELD(fieldname28|n); display_40 = false; } if(slider2>79){ SHOWFIELD(fieldname29|n); display_40 = false; } if(slider3>30){ SHOWFIELD(fieldname10|n); display_40 = false; } if(slider4>540){ SHOWFIELD(fieldname30|n); display_40 = false; } if(slider5>175){ SHOWFIELD(fieldname32|n); display_40 = false; } if(slider6>25){ SHOWFIELD(fieldname31|n); display_40 = false; } if(slider7>70){ SHOWFIELD(fieldname33|n); display_40 = false; } if(display_40){SHOWFIELD(fieldname40|n);} })()
I then put this in a calculated field equation and removed all other equations from other calculated fields. However now whenever I preview the form. including in its cff URL, the page is not responsive (cannot move sliders) and eventually the tab crashes. Can’t open the console to see jS errors. Is there a circular reference or something I have included?
ThanksForum: Plugins
In reply to: [Calculated Fields Form] Display a field if no other fields are shownWhere should the code (once edited to account for the specific fields I’m using) be pasted?
Forum: Plugins
In reply to: [Calculated Fields Form] Display a field if no other fields are shownThanks. Just so I understand, this hypothetical code should be in the Equation of a new calculated field? Is this the only calculated field?
Forum: Plugins
In reply to: [WordPress Button Plugin MaxButtons] HTML codes are breaking Maxbutton URLsThanks. Sorry I’m a bit inexperienced with filters, in this example is what it’s doing basically looking for any instances of ‘url’ in any MaxButton and replacing them with $dataUrl, which should be the unprocessed version?
Thanks
Forum: Developing with WordPress
In reply to: Removing nofollow attribute from social widget icon linksThat is a custom plugin, I am talking about the default WordPress widgets.
Forum: Themes and Templates
In reply to: [GeneratePress] Adding search functionality to mobile menuThanks for the help, there was some CSS blocking it.