How to decode a wordpress theme footer

by Banned 7 replies
9
How to decode a wordpress theme footer?
I want to remove wp footer links.
Thanks.
#programming #decode #footer #theme #wordpress
  • You don't want to remove the entire footer, just the links? It'll be easier to help if you post the code, but look for something like <a href="url">Link text</a> in the footer.php file.
    • [1] reply
    • you can also load your site and look at your source code and grab the footer code from it. then replace your encoded footer with your source code footer.
  • let me know if you want some help
    i do that all the times, that's fast and easy jobs
  • Find footer.php in folder theme and remove link. Some themes have protection of this link, you need rent PHP coder to remove it.
  • 1) Sign into the backend of your WP

    2) Select Appearance -> Editor from the left menu

    3) Select "Footer.php" from the menu on the right

    You will see the following within Footer.php

    Code:
    <div id="footer-wrapper">
    
    		<?php get_sidebar( 'footer' ); ?>
    
    		<div class="grid col-940">
    
    			<div class="grid col-540">
    				<?php if( has_nav_menu( 'footer-menu', 'responsive' ) ) { ?>
    					<?php wp_nav_menu( array(
    										   'container'      => '',
    										   'fallback_cb'    => false,
    										   'menu_class'     => 'footer-menu',
    										   'theme_location' => 'footer-menu'
    									   )
    					);
    					?>
    				<?php } ?>
    			</div>
    			<!-- end of col-540 -->
    
    			<div class="grid col-380 fit">
    				<?php echo responsive_get_social_icons() ?>
    			</div>
    			<!-- end of col-380 fit -->
    
    		</div>
    		<!-- end of col-940 -->
    		<?php get_sidebar( 'colophon' ); ?>
    
    		<div class="grid col-300 copyright">
    			<?php esc_attr_e( '&copy;', 'responsive' ); ?> <?php echo date( 'Y' ); ?><a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
    				<?php bloginfo( 'name' ); ?>
    			</a>
    		</div>
    		<!-- end of .copyright -->
    
    		<div class="grid col-300 scroll-top"><a href="#scroll-top" title="<?php esc_attr_e( 'scroll to top', 'responsive' ); ?>"><?php _e( '&uarr;', 'responsive' ); ?></a></div>
    
    	
    		<!-- end .powered -->
    
    	</div>
    	<!-- end #footer-wrapper -->
    Again, you will find the above inside the Footer.php - this is not the entirety of Footer.php just the essential parts you're looking to edit.

    You can safely remove ALL of the above which is inbetween
    Code:
    <div id="footer-wrapper">
    and that final
    Code:
    </div>
    depending on your theme you may see
    Code:
    <!-- end #footer-wrapper -->
    which can be helpful.

    Always back up your copy first if you haven't done this before - copy and paste the entirety of Footer.php into a New text document and if things don't work out, copy and paste / replace the entirety of the script again.

    A totally clean empty version would look like this (this is an entire Footer.php for the theme "Responsive" which I highly recommend but will look similar in other themes)

    Code:
    <?php
    
    // Exit if accessed directly
    if( !defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    /**
     * Footer Template
     *
     *
     * @file           footer.php
     * @package        Responsive
     * @author         Emil Uzelac
     * @copyright      2003 - 2014 CyberChimps
     * @license        license.txt
     * @version        Release: 1.2
     * @filesource     wp-content/themes/responsive/footer.php
     * @link           http://codex.wordpress.org/Theme_Development#Footer_.28footer.php.29
     * @since          available since Release 1.0
     */
    
    /*
     * Globalize Theme options
     */
    global ;
     = responsive_get_options();
    ?>
    <?php responsive_wrapper_bottom(); // after wrapper content hook ?>
    </div><!-- end of #wrapper -->
    <?php responsive_wrapper_end(); // after wrapper hook ?>
    </div><!-- end of #container -->
    <?php responsive_container_end(); // after container hook ?>
    
    <div id="footer" class="clearfix">
    	<?php responsive_footer_top(); ?>
    
    	<div id="footer-wrapper">
    //ALL FOOTER CONTENT REMOVED HERE - NOTICE I AM LEAVING THE CLOSING DIV, THIS EMPTY FOOTER WRAPPER MIGHT AS WELL REMAIN SO YOU CAN PASTE YOUR NEW FOOTER CONTENT HERE
    	</div>
    
    	<?php responsive_footer_bottom(); ?>
    </div><!-- end #footer -->
    <?php responsive_footer_after(); ?>
    
    <?php wp_footer(); ?>
    </body>
    </html>

    I do this regularly to remove the WP standard links and set my own. Hope this helps someone at some point.
    • [1] reply
    • If you did it regularly, you would know that the code for themes vary substantially from what you presented, and they rarely are the same.
      • [1] reply

Next Topics on Trending Feed