WordPress.org

Ready to get started?Download WordPress

Forums

How to find and erase a duplicate div (4 posts)

  1. colormechanics
    Member
    Posted 2 years ago #

    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]

  2. popper
    Member
    Posted 2 years ago #

    Can you post your footer.php -or the code you added- ? If it´s to long, use pastebin.

  3. colormechanics
    Member
    Posted 2 years ago #

    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' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>

    <?php } ?>

    Any ideas what's going wrong?

  4. colormechanics
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic