WordPress.org

Ready to get started?Download WordPress

Forums

html in mystique theme (7 posts)

  1. chshahid2k
    Member
    Posted 3 years ago #

    hello guys im try to add html in mystique theme but if i do so my footer gets disturb.. why is it so

    eg: this is google translator html code

    <div id="google_translate_element"></div><script>
    function googleTranslateElementInit() {
      new google.translate.TranslateElement({
        pageLanguage: 'en'
      }, 'google_translate_element');
    }
    </script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

    i have tried adding it in footer / header.php it works fine but my footer got disturbed and cames to top

    same thing happend when i try to add it via text-widget or even with ad short code
    can anyone help?

  2. digitalnature
    Member
    Posted 3 years ago #

    try pasting that code in the theme settings > footer content

  3. chshahid2k
    Member
    Posted 3 years ago #

    i have tried that as well but still footer gets disturbed as i post it there. i have even tried to add this code in 'ad boxes' available in mystique settings and then try to call it in footer through mystique settings>>footer content >> Ad code # 4 (example)
    but again footer image come to top

  4. digitalnature
    Member
    Posted 3 years ago #

    post a link to your site please

  5. chshahid2k
    Member
    Posted 3 years ago #

    here is the link MassDL.com

  6. chshahid2k
    Member
    Posted 3 years ago #

    btw, this problem only occurs with this GOogle Translate code..

    other html codes are working fine :)

  7. asdbsdk
    Member
    Posted 3 years ago #

    Try wrapping your code in

    <div style="max-width:100px;max-height:20px; display:block;float:left;">

    and
    </div>

    try adjusting max width and height...
    and if this does not work ... try changing display:block to display:inline-block

    and if this does not work, show me a screenshot of distracted page ...

Topic Closed

This topic has been closed to new replies.

About this Topic