How to decode a wordpress theme footer

by kaufenpreis Banned
7 replies
How to decode a wordpress theme footer?
I want to remove wp footer links.
Thanks.
#decode #footer #theme #wordpress
  • Profile picture of the author JacobS
    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.
    {{ DiscussionBoard.errors[9146849].message }}
    • Profile picture of the author crams
      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.
      {{ DiscussionBoard.errors[9147087].message }}
  • Profile picture of the author Yvon Boulianne
    let me know if you want some help
    i do that all the times, that's fast and easy jobs
    Signature
    Stop Struggling With Your Website and Marketing
    30$ / task, pay after done!
    {{ DiscussionBoard.errors[9147193].message }}
  • Profile picture of the author seaurchin
    Find footer.php in folder theme and remove link. Some themes have protection of this link, you need rent PHP coder to remove it.
    {{ DiscussionBoard.errors[9147372].message }}
  • Profile picture of the author Metacomet
    Originally Posted by kaufenpreis View Post

    How to decode a wordpress theme footer?
    I want to remove wp footer links.
    Thanks.
    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.
    {{ DiscussionBoard.errors[9163364].message }}
    • Profile picture of the author RobinInTexas
      Originally Posted by Metacomet View Post


      I do this regularly to remove the WP standard links and set my own. Hope this helps someone at some point.
      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.
      Signature

      Robin



      ...Even if you're on the right track, you'll get run over if you just set there.
      {{ DiscussionBoard.errors[9165140].message }}
      • Profile picture of the author Metacomet
        Originally Posted by RobinInTexas View Post

        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.

        Snarky much?

        Show me an example of a theme that doesn't allow you to edit Footer content from Footer.php, please.

        In the event my advice didn't help the OP I would then explain how to edit CSS styles and he'd be fine.
        {{ DiscussionBoard.errors[9165430].message }}

Trending Topics