Form Breaking
This topic contains 17 replies, has 3 voices, and was last updated by Matt Gray 8 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
October 27, 2016 at 12:23 pm #292767
Hello,
My form is breaking on both Add My Projects and Add My Company. Jump back and forth between the pages and it will eventually break in 3-4 tries. Please let me know what you think.
https://sp8ce.design/add-listing/?listing_type=gd_place
https://sp8ce.design/add-listing/?listing_type=gd_contractor_projec
Please see the attached. Thank you for the help.
Matt
October 27, 2016 at 6:31 pm #293042Hi,
we will need admin credentials to check that.
Let us know,
Thanks
October 27, 2016 at 6:36 pm #293044This reply has been marked as private.October 27, 2016 at 6:56 pm #293054Hi Matt,
This is related to the buddyboss selects, you need to ask them for a snippet of code to disable the selectbox script https://wpgeodirectory.com/support/topic/global-search-glitches/#post-283705
Please post the snippet here once you have it to help others.
Thanks,
Stiofan
October 27, 2016 at 9:39 pm #293177OK thank you. I will check with them on this too. They haven’t gotten back with me with regards to the other one.
I did not erase your code. I want it back! They went in there to test something and I guess erased it? I have no idea where you put it.
Would you be able to tell me where or what you wrote to fix that issue? I have attached a screenshot. It looks bad again. Yours fix was perfect! Maybe if you just tell me the code and location I can get a developer to do it.
Thanks Stiofan.
October 28, 2016 at 10:43 am #293407My hook was disabling more than that exact script if i remember correctly, you need to get the answer from the theme author.
Thanks,
Stiofan
October 28, 2016 at 12:44 pm #293459Sounds good. Thanks for letting me know. You can close this ticket. I will post when they respond so other users can find answer.
Thanks Stiofan.
October 28, 2016 at 1:38 pm #293465Thanks
October 31, 2016 at 3:40 pm #295109This reply has been marked as private.October 31, 2016 at 8:04 pm #295308it looks correct and yes it should go into functions.php
Let us know,Thanks
November 1, 2016 at 11:49 am #295644Added that code and no such luck. The weird thing is on mobile it’s working. On desktop, it is not. Any ideas? See attached on mobile.
Whatever code Stoifan had in there made it work but then we got the theme developer involved and it disappeared. I’m not sure what happened.
Thanks for the input.
Matt
November 1, 2016 at 12:15 pm #295654Tell the theme author that snippet wont work because they are trying to remove a script name that does not exists, i also found that snippet on their forum but they have changed the script names and they way it is loaded.
wp_dequeue_script( ‘selectboxes’ );
The theme does not add a script with name ‘selectboxes’…
Stiofan
November 2, 2016 at 10:10 pm #297161Please close ticket. Here is the solution for the community.
STEP – 1. Upload attached file at /themes/onesocial-child/js/selectboxes.js (yet file is empty)
STEP – 2 Add following code in your child theme’s functions.php
/**
* Onesocial Theme: Remove onesocial theme’s selectbox
*/
function boss_remove_selectboxes() {
wp_deregister_script( ‘selectboxes-script’ );
wp_dequeue_script( ‘selectboxes-script’ );wp_enqueue_script( ‘selectboxes-script’, get_stylesheet_directory_uri() . ‘/js/selectboxes.js’, array( ‘jquery’ ), ‘1.0.2’ );
}
add_action( ‘wp_print_scripts’, ‘boss_remove_selectboxes’, 10 );
November 2, 2016 at 10:11 pm #297162I can’t upload the file and I’m not supposed to email you. LMK if you have email or Skype to send it. It will help other to have that.
Thank you.
Matt
November 3, 2016 at 4:18 pm #297507Hi Matt,
please 1st zip it, then upload it.
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket