简体   繁体   中英

How to get rid from RSS and Wordpress.org fields in Wordpress side?

I've used Wordpress sporty theme downloaded from:

https://www.templateexpress.com/sporty-theme/

Wordpress version is 4.8

This theme has RSS and Wordpress.org fields in the footer.

How to get rid from those mention above fields?

I mean, what files need to be changed in order that those fields want not be visible in the footer?

thanks.

//wp_content/themes/sporty/footer.php

<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content after
 *
 * @package sporty
 * @since sporty 1.0
 */
?>

    </div><!-- #main .site-main -->

    <footer id="colophon" class="site-footer" role="contentinfo">

    <div class="section group">

    <div class="col span_1_of_3">
    <?php if ( is_active_sidebar( 'left_column' ) && dynamic_sidebar('left_column') ) : else : ?>
         <div class="widget">
            <?php echo '<h4>' . __('Widget Ready', 'sporty') . '</h4>'; ?>
            <?php echo '<p>' . __('This left column is widget ready! Add one in the admin panel.', 'sporty') . '</p>'; ?>
            </div>     
    <?php endif; ?>  
        </div>

    <div class="col span_1_of_3">
    <?php if ( is_active_sidebar( 'center_column' ) && dynamic_sidebar('center_column') ) : else : ?>
         <div class="widget">
            <?php echo '<h4>' . __('Widget Ready', 'sporty') . '</h4>'; ?>
            <?php echo '<p>' . __('This center column is widget ready! Add one in the admin panel.', 'sporty') . '</p>'; ?>
            </div>     
    <?php endif; ?> 

    </div>

    <div class="col span_1_of_3">
    <?php if ( is_active_sidebar( 'right_column' ) && dynamic_sidebar('right_column') ) : else : ?>
         <div class="widget">
            <?php echo '<h4>' . __('Widget Ready', 'sporty') . '</h4>'; ?>
            <?php echo '<p>' . __('This right column is widget ready! Add one in the admin panel.', 'sporty') . '</p>'; ?>
            </div>     
    <?php endif; ?> 
    </div>
    </div>

         <div class="site-info">
            <a href="<?php $my_theme = wp_get_theme(); echo $my_theme->get( 'ThemeURI' ); ?>">
            <?php _e('Sporty free WordPress Sports Theme','sporty'); ?></a>
            <?php echo __( 'Powered By WordPress ', 'sporty' ); ?>
        </div><!-- .site-info -->
    </footer><!-- #colophon .site-footer -->
    <a href="#top" id="smoothup"></a>
</div><!-- #page .hfeed .site -->
</div><!-- end of wrapper -->
<?php wp_footer(); ?>

</body>
</html>

In the theme need to delete widget that use RSS as below:

public function widget( $args, $instance ) {
        /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
        $title = apply_filters( 'widget_title', empty($instance['title']) ? __( 'Meta' ) : $instance['title'], $instance, $this->id_base );

        echo $args['before_widget'];
        if ( $title ) {
            echo $args['before_title'] . $title . $args['after_title'];
        }
            ?>
            <ul>
            <?php wp_register(); ?>
            <li><?php wp_loginout(); ?></li>

            //remove RSS

            <?php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM