PaulH wp
Forum Replies Created
-
Forum: Plugins
In reply to: [Multiple Columns for Gravity Forms] ul inside of li on front endHi, the column part seems to work great, but the CSS is also breaking the gravity forms default grid CSS.
The problem is that all fields are 100% width and do not follow the columns set in the editor. I checked the CSS and found that it was applying rules to the whole of the form rather than just the elements inside the row start/row end.
You can see below that it is removing the grid display from all fields
.gform_wrapper.gravity-theme .gform_fields { display: block; grid-template-columns: unset; }
- This reply was modified 3 years, 7 months ago by PaulH wp.
Forum: Plugins
In reply to: [Multiple Columns for Gravity Forms] ul inside of li on front endThe problem I had with the inbuilt columns is that several fields that I wanted to group together were in the wrong order when viewed from a mobile device. However, I was able to modify the code to output the structure I was looking for.
I know editing the plugin is not ideal but it was a quick fix and can be changed easily if the plugin is updated.
Thanks but I had already found that. How would I use that to change what is displayed on pages that don’t use shortcodes?
The events and categories pages that are auto generated by the plugin have content added automatically and although I can use CONTENTS to choose where the events are displayed I am not sure how to effect the output.
I tried using a shortcode but because there is no CONTENTS marker it just overwrites the whole page.
I have managed to get everything working properly by adjusting the code as shown below, but as soon as I add the wpmem_texturize call the problem returns.
if ( strstr( $content, '[wpmem_txt]' ) ) { // Fix the wptexturize. remove_filter( 'the_content', 'wpautop' ); $content = str_replace( array( '[wpmem_txt]', '[/wpmem_txt]' ), array( '', '' ), $content ); }
The problem seems to be linked to wpmem_texturize somehow as everything else works fine until i add this line back in.
add_filter( 'the_content', 'wpmem_texturize', 999 );
I have been doing some testing on a blank page and found that whenever any code is added other than the forms shortcodes I get p tags wrapped around the HTML comments.
I tried adding just the forms and everything was fine, but when I added the social login plugin under the WP-Members login form the problem returned.
I then decided to search for where the plugin was dealing with wpautop and found the following code.
if ( strstr( $content, '[wpmem_txt]' ) ) { // Fix the wptexturize. remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_content', 'wptexturize' ); add_filter( 'the_content', 'wpmem_texturize', 999 ); }
This code is located in both class-wp-members.php and shortcodes.php which when removed seems to fix the issue.
The problem I have now is that there is [wpmem_txt][/wpmem_txt] wrapped around both forms as well as having to deal with updates to the plugin in future.
Any ideas on what I can do to solve this issue?
I have tried adding code to disable the wpautop function (below), but the problem still remains. Not sure if the plugin is using this function, if not it may be some other reason that is causing this to happen.
remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' );
Forum: Plugins
In reply to: [Meta Box] Seperate latitude and longitude from map meta boxThat worked perfectly, thank you very much.
Forum: Plugins
In reply to: [Meta Box] Seperate latitude and longitude from map meta boxBy seperate i mean the values before they are stored in the database so that i have a field for lat and one for long. Dont think it was clear in the original question..
Forum: Plugins
In reply to: [Eventbrite API] Only 1 event displayedHi,
The connection issues are now fixed but there are still problems with only some events being displayed.
I created a test page until this is sorted here if you want to look at the page.
There should be 16 events currently listed as active on Eventbrite (link in first post) but there are only 6 or 7 listed on the page I have setup.
Forum: Plugins
In reply to: [Eventbrite API] Only 1 event displayedYeah sorry I must have copied the old version it was already changed to close after the include for the content.
Also, I tried clearing the connection to see if that would help but I’m get this error now when trying to authorise on the Eventbrite site:
The application you’re trying to use has made an invalid request to Eventbrite. Please contact the application developer.
Any ideas?