Form Breaking

This topic contains 17 replies, has 3 voices, and was last updated by  Matt Gray 7 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #292767

    Matt Gray
    Expired Member
    Post count: 131

    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

    #293042

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    we will need admin credentials to check that.

    Let us know,

    Thanks

    #293044

    Matt Gray
    Expired Member
    Post count: 131
    This reply has been marked as private.
    #293054

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #293177

    Matt Gray
    Expired Member
    Post count: 131

    OK 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.

    #293407

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    My hook was disabling more than that exact script if i remember correctly, you need to get the answer from the theme author.

    Thanks,

    Stiofan

    #293459

    Matt Gray
    Expired Member
    Post count: 131

    Sounds 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.

    #293465

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks

    #295109

    Matt Gray
    Expired Member
    Post count: 131
    This reply has been marked as private.
    #295308

    Paolo
    Site Admin
    Post count: 31206

    it looks correct and yes it should go into functions.php
    Let us know,

    Thanks

    #295644

    Matt Gray
    Expired Member
    Post count: 131

    Added 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

    #295654

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Tell 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

    #297161

    Matt Gray
    Expired Member
    Post count: 131

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

    #297162

    Matt Gray
    Expired Member
    Post count: 131

    I 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

    #297507

    Paolo
    Site Admin
    Post count: 31206

    Hi Matt,

    please 1st zip it, then upload it.

    Thanks

Viewing 15 posts - 1 through 15 (of 18 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket