wp响应主题页脚调整高度

时间:2014-02-27 20:57:28

标签: php wordpress

html和php。我已经通过使用子主题和更改footer.php文件向WP添加了一个页脚img响应它们。我可以调整宽度,但我似乎无法改变高度。任何人都可以帮忙解决这个问题吗?谢谢。

这是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_options;
$responsive_options = 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">

        <?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 _e( 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>

        <div class="grid col-300 fit powered">
            <a href="<?php echo esc_url( 'http://cyberchimps.com/responsive-theme/' ); ?>" title="<?php esc_attr_e( 'Responsive Theme', 'responsive' ); ?>">
                Responsive Theme</a>
            <?php esc_attr_e( 'powered by', 'responsive' ); ?> <a href="<?php echo esc_url( 'http://wordpress.org/' ); ?>" title="<?php esc_attr_e( 'WordPress', 'responsive' ); ?>">
                WordPress</a>
        </div>
        <!-- end .powered -->

    </div>
    <!-- end #footer-wrapper -->

    <?php responsive_footer_bottom(); ?>
</div><!-- end #footer -->
<?php responsive_footer_after(); ?>





<img class="footer-image" src="/wp-content/themes/responsive-child/Image/bgtest.jpg"
alt="bgtest.jpg" width="990" height="50">




<?php wp_footer(); ?>
</body>
</html>` 

0 个答案:

没有答案