Before you ask please READ THIS

Menu not showing when code added to page

edited January 2014 in Superior Posts: 2
Hi, if I add some code to articles or pages the menu dissappears on my pages like http://www.zinsenvergleich.at/tagesgeldkonto/
as you can see on other pages with no code it shows with no problem like http://www.zinsenvergleich.at/gehaltskonto/

This happens with php, iframe, javascript as well as with shortcodes like [something]....[/something]

Looking forward to your solution.

Thanks,

Simon

Comments

  • AirAir
    Posts: 10,970
    Hello

    It is not just menu, but you crush whole JavaScript on your site. What you have added
    produce error in JavaScript and that causes rest of JavaScript to stop executing.

    Uncaught TypeError: Property '$' of object [object Object] is not a function parentIframeResizer.js:6

    With regards.
  • edited January 2014 Posts: 2
    Is javascript in general not working with this theme? Is there a workaround to be able to implement it? I tried to implement it via shortcode, but this didn't helped.

    What about php - I have a "execute php" plugin that normaly works - Is this a problem for the theme as well?

    In this case it is just this three lines of javascript - I could not see an error in here:
    
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript" src="https://r.neqty.net/scripts/jquery.ba-postmessage.min.js"></script>
    <script type="text/javascript" src="https://r.neqty.net/scripts/parentIframeResizer.js"></script>
    
    Thanks for your support,

    Simon
    Post edited by Air on
  • AirAir
    Posts: 10,970
    Hello again:-)
    zinsenvergleich said: Is javascript in general not working with this theme? Is there a workaround to be able to implement it? I tried to implement it via shortcode, but this didn't helped.
    That is rather ridiculous question. Yes, JavaScript works well with this theme. Big part of theme is based on JavaScript.
    zinsenvergleich said: What about php - I have a "execute php" plugin that normaly works - Is this a problem for the theme as well?
    Show me live example.
    zinsenvergleich said: In this case it is just this three lines of javascript - I could not see an error in here:
    Do you know what you are doing? Adding jQuery to wordpress theme like that must break something. Besides "I could not see an error in here" - do you mean that script in this files can't be buggy? Don't answer this, I just wrote so you can think further:-) Cause this three lines add 200 000 chars of code, so there is BIG chance there can be error:-)

    After all that me being such smart ass:-) I advise to remove this line <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>.
    If you do not know what you are doing, then please hire someone for such work.

    With regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!