WordPress.org

Ready to get started?Download WordPress

Forums

Footer twentyeleven (7 posts)

  1. lulachic
    Member
    Posted 1 year ago #

    Hello,

    I deleted the footer in the editor to remueve "wordpress title" since then my facebook plugins: like box and sharing bottons (shareholic) arent working. they seemed ok!

    thanks for the help.

    Maybe I deleted more than I should?? the two last line before </script>
    thanks,

  2. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    You can re-install the theme to revert that change, and any changes you've made to the theme.

    To avoid losing changes when re-installing the theme, transfer your changes to a Child Theme.

    It's important to keep the default themes, Twenty Ten and Twenty Eleven as they are for debugging.

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    whatever you delete in footer.php (in a child theme of Twenty Eleven), make sure to keep:

    </div><!-- #main -->
    
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

    the html tags are for keeping the site 'validatable' - http://validator.w3.org/
    and the <?php wp_footer(); ?> is a necessary hook for scripts, etc.

  4. lulachic
    Member
    Posted 1 year ago #

    it seems I have a lot to learn and to look up. Should try and do it. Thanks. (Andrew)

    Alchymyth: it looks as I have everything you mentioned.
    i installed jetpack; may this be the problem??

    thanks so much.
    C
    ------------
    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser. Or use pastebin.com instead. ]

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the id=main div and all content after
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0
     */
    ?>
    
    	</div><!-- #main -->
    
    	<footer id="colophon" role="contentinfo">
    
    			<?php
    				/* A sidebar in the footer? Yep. You can can customize
    				 * your footer with three columns of widgets.
    				 */
    				if ( ! is_404() )
    					get_sidebar( 'footer' );
    			?>
    
    			<div id="site-generator">
    				<?php do_action( 'twentyeleven_credits' ); ?>
    				<a>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( ); ?></a>
    			</div>
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-31731423-1']);
      _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);
      })(<?php do_action( 'twentyeleven_credits' ); ?>
    				<a>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
    </div><!-- #main -->
    
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>			</div>);
    
    </script>
    </body>
    </html>
  5. lulachic
    Member
    Posted 1 year ago #

    the hit counter used to work as well , at the bottom-left of the page and it not showing either. thanks again

  6. adambutterworth
    Member
    Posted 1 year ago #

    Do you have a closing tag for that <script> tag? If you've deleted stuff and it's left open you'll probably have issues..

  7. lulachic
    Member
    Posted 1 year ago #

    I pasted the full footer.php. Is this
    </script> the closing tag?, have not got a clue about programming!!!
    Fell quite lost.

    thanks.
    C

Topic Closed

This topic has been closed to new replies.

About this Topic