Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1407288
    ellby
    Participant

    While on my website, I have a menu, and one menu header named “Services” drops down with multiple services listed. On every page this menu works (hover over it, services drop down). However, when I get to my “Contact us” page, I go to hover over “Services” and nothing happens. In fact, the preview URL at the bottom of my browser reads for the “Contact us” page. When I’m in Cornerstone editing the “contact us” page it doesn’t seem to be an issue. But when I go to the live website it is an issue ONLY on the “Contact us” page. Private reply including link and password below.

    #1407292
    ellby
    Participant
    This reply has been marked as private.
    #1407668
    Friech
    Moderator

    Hi There,

    Thank you for writing in! I am seeing a JavaScript error on the contact page only. Please do a 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.

    Cheers!

    #1407875
    ellby
    Participant

    I’ve gone to my plugin page and the only plugin I have active is Cornerstone.

    #1407880
    ellby
    Participant

    It looks like it was my embedded contact form. How do I embed the code for that form (from MachForm) without causing other issues?

    #1408086
    Thai
    Moderator

    Hi There,

    Please try adding the embed code to the raw content element.

    Hope it helps 🙂

    #1408275
    ellby
    Participant
    This reply has been marked as private.
    #1408486
    Jade
    Moderator

    Hi there,

    Please install and activate the child theme and add this code in the functions.php file:

    add_action('wp_head','custom_script');
    
    function custom_script() {
    ?>
    
        <script type="text/javascript">
            var __machform_url = "http://virginiabeachdoula.com/forms/embed.php?id=10248";
            var __machform_height = 1498;
        </script>
        <div id="mf_placeholder"></div>
        <script type="text/javascript" src="http://virginiabeachdoula.com/forms/js/jquery.min.js"></script>
        <script type="text/javascript" src="http://virginiabeachdoula.com/forms/js/jquery.ba-postmessage.min.js"></script>
        <script type="text/javascript" src="http://virginiabeachdoula.com/forms/js/machform_loader.js"></script>
    
    <?php
    }

    Hope this helps.

    #1408637
    ellby
    Participant

    I did that and now my entire website is down. I can’t even access wordpress anymore. What do I do now??

    #1408674
    ellby
    Participant

    I had to go to my cpanel and manually delete this code because it made my website go down. When I deleted it everything came back up. Do you have another solution that may help?

    #1409141
    Paul R
    Moderator

    Hi,

    You need to remove the jquery script from your code. The script is already added so no need to add it again.

    Please your code to this and add it in a raw content element.

    
    
        <script type="text/javascript">
            var __machform_url = "http://virginiabeachdoula.com/forms/embed.php?id=10248";
            var __machform_height = 1498;
        </script>
        <div id="mf_placeholder"></div>    
        <script type="text/javascript" src="http://virginiabeachdoula.com/forms/js/jquery.ba-postmessage.min.js"></script>
        <script type="text/javascript" src="http://virginiabeachdoula.com/forms/js/machform_loader.js"></script>
    
    

    I removed this line – <script type="text/javascript" src="http://virginiabeachdoula.com/forms/js/jquery.min.js"></script>

    Hope that helps

    #1409492
    ellby
    Participant

    I’m not understanding where in the functions.php file to put this code. No matter where I place it, it either makes the entire website non-functioning (as in when I type in the URL it’s no longer accessible) or when I put it in the very first line of the file it makes it so my contact form is in the header. Plus, even when it IS in the header, I’m still having the original issue of the Services tab not being functioning. So it hasn’t resolved that problem.

    If you go to my website now you can see how I’d like the contact us page formatted. The only issue I’m currently having is that the Services tab no longer drops down and it previews as a link for the Contact Us page.

    So, where in the functions file do I specifically place the code so it doesn’t reformat the page and it also resolves the issue of the non-working Services tab?

    #1409684
    Joao
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    #1410462
    ellby
    Participant

    Are my FTP credentials different from my login information listed above??

    #1410467
    ellby
    Participant
    This reply has been marked as private.
  • <script> jQuery(function($){ $("#no-reply-1407288 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>