Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #997498
    thetravelvisa
    Participant

    I think I have conflicting Javascript on my page which is stopping certain elements from working properly (scroll to top, text type, card). All element work together when viewing in Cornerstone but not when viewing live.

    Here is the page: http://www.thetravelvisacompany.ie/services/

    I don’t think it’s related but the 404 page isn’t working correctly either (it shows the designated page as a search result which you have to click to see the content). I will provide the WP login credentials so you can look into both issues.

    #997499
    thetravelvisa
    Participant
    This reply has been marked as private.
    #997639
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    #997648
    thetravelvisa
    Participant

    The only plugins installed are the default ones that are required for the theme. The conflict hasn’t been an issue for the past few months but has recently occurred.

    #997844
    Rupok
    Member

    Hi there,

    Thanks for updating. I have checked your given URL and not sure what’s not working due to JS errors as I can’t see any JS errors on the console either. Would you clarify a bit?

    Cheers!

    #998992
    thetravelvisa
    Participant

    It seems as though you have fixed the cornerstone elements that weren’t working correctly. It has now prevented the search box from operating properly.

    The search is a block of custom HTML (you can see it working on the homepage http://www.thetravelvisacompany.ie/) which does reference another JS file so that when people search for a country it directs them to the relevant page rather than displaying a list of search results.

    They were both working alongside each other until a recent update was installed.

    #999100
    thetravelvisa
    Participant

    If you login and go to edit the page with cornerstone then you will be able to see all the javascript elements working together as they should. It’s just when viewing live where the problem lies.

    #999117
    Paul R
    Moderator

    Hi,

    It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thank you for your understanding.

    #999124
    Christian
    Moderator

    Hey there,

    Your custom HTML’s setup is incorrect. It includes the head tag which is not allowed (see attachment). Though you said it worked before, that setup is not supported. Looking at the code, the scripts must be added inside the <head></head> tag. To do that, please see http://www.wpbeginner.com/plugins/how-to-add-header-and-footer-code-in-wordpress/

    The rest of the HTML must remain in the Raw Content element. If you’re not comfortable working with code, I recommend that you seek help from a WordPress developer.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-997498 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>