• The container at the bottom of the site I’m editing doubled in length after I added some code to footer.php. Upon inspection with firebug I noticed an original <copyright> div was already there, so they are now duplicates. I can’t, however, find this duplicate in the stylesheet nor in the footer.php. Any idea how I can locate and eliminate it? Here’s the code: Any help will be appreciated!!

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you post your footer.php -or the code you added- ? If it´s to long, use pastebin.

    Thread Starter colormechanics

    (@colormechanics)

    Hi Popper, this is the code I had initially tried to paste here, which is what I get when inspecting with firebug light, there are to “copyrights” although only one is displaying the text I want, the one on top is invisible but firebug light points to the same line in the sytlesheet:

    <div class="clear"/>
    </div>
    <div class="copyright"/>
    </div>
    <div class="copyright">

    this is my footer.php

    <!– end div.footer –>

    <div class=”copyright”>

    <!–Footer Text from Admin Options –>
    <?php $footertext = get_option(‘bb_footer_text’); ?>
    <p class=”tiny”><?php if($footertext != NULL) {echo $footertext;} else {echo ‘
    Get a quote. Remove after purchase.’;} ?></p>

    </div><!– end div#wrapper –>

    <!– ALL JQUERY SETTINGS AND INITILIZATION, Image Carousel, and Form Validation –>
    <script src=”<?php echo get_template_directory_uri(); ?>/js/settings.js” type=”text/javascript”></script>

    <!– cufon ie fix –>
    <script type=”text/javascript”>Cufon.now();</script>

    <!– Google Analytics from Admin Options –>
    <?php /* get theme color from options */
    $analytics = get_option(‘bb_analytics’);
    if($analytics != NULL) {echo $analytics;} else { ?>

    <script type=”text/javascript”>

    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-19961671-3’]);
    _gaq.push([‘_trackPageview’]);

    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl&#8217; : ‘http://www&#8217;) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>

    <?php } ?>

    Any ideas what’s going wrong?

    Thread Starter colormechanics

    (@colormechanics)

    as an extra bit of info, I’ve located the first “copyright” div in the page.php, but I don’t know how to add text there. If I just copy paste the bit that says Fotter text from Admin Options, no change displays.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to find and erase a duplicate div’ is closed to new replies.