Skip to main content
added 407 characters in body
Source Link

I am using a theme and the developer doesnt want to help me make a widget on the templates/footer.php

The curently code at this php file is

<div class="bw-footer <?php echo isset( $class ) ? $class : ''; ?>">
    <div class="row">
        
        <?php
            $footer_logo = Bw::get_option('footer_logo');
            
            if( $footer_logo ) {
                echo "<div class='footer-logo'><img src='" . esc_attr( $footer_logo ) . "' alt=''></div>";
            }
            
            if ( has_nav_menu( 'footer' ) ) {
                echo '<nav class="navigation-footer">';
                    wp_nav_menu( array( 'theme_location' => 'footer' ) );
                echo '</nav>';
            }
            
            echo '<div class="footer-copy">' . Bw::esc_kses( Bw::get_option( 'footer_text' ), '' ) . '</div>';
            
            echo Bw::go_social( 'bw-social-uc' );
        ?>
        
    </div>
    <div class="footer-after bw-end-label"><div class="after back-top"><i class="fa fa-angle-up"></i></div></div>
</div>

Could you please help me make a widget area for the footer so i can add one "Newsletter" form (something like mailpoet plugin)? Thanks a lot.

Update. This is the "wp-content/themes/themename/footer.php file

<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package Bad Weather
 */
?>
    </div> <!-- #container -->
</div> <!-- #wrapper -->

<?php wp_footer(); ?>

</body>
</html>

I am using a theme and the developer doesnt want to help me make a widget on the templates/footer.php

The curently code at this php file is

<div class="bw-footer <?php echo isset( $class ) ? $class : ''; ?>">
    <div class="row">
        
        <?php
            $footer_logo = Bw::get_option('footer_logo');
            
            if( $footer_logo ) {
                echo "<div class='footer-logo'><img src='" . esc_attr( $footer_logo ) . "' alt=''></div>";
            }
            
            if ( has_nav_menu( 'footer' ) ) {
                echo '<nav class="navigation-footer">';
                    wp_nav_menu( array( 'theme_location' => 'footer' ) );
                echo '</nav>';
            }
            
            echo '<div class="footer-copy">' . Bw::esc_kses( Bw::get_option( 'footer_text' ), '' ) . '</div>';
            
            echo Bw::go_social( 'bw-social-uc' );
        ?>
        
    </div>
    <div class="footer-after bw-end-label"><div class="after back-top"><i class="fa fa-angle-up"></i></div></div>
</div>

Could you please help me make a widget area for the footer so i can add one "Newsletter" form (something like mailpoet plugin)? Thanks a lot.

I am using a theme and the developer doesnt want to help me make a widget on the templates/footer.php

The curently code at this php file is

<div class="bw-footer <?php echo isset( $class ) ? $class : ''; ?>">
    <div class="row">
        
        <?php
            $footer_logo = Bw::get_option('footer_logo');
            
            if( $footer_logo ) {
                echo "<div class='footer-logo'><img src='" . esc_attr( $footer_logo ) . "' alt=''></div>";
            }
            
            if ( has_nav_menu( 'footer' ) ) {
                echo '<nav class="navigation-footer">';
                    wp_nav_menu( array( 'theme_location' => 'footer' ) );
                echo '</nav>';
            }
            
            echo '<div class="footer-copy">' . Bw::esc_kses( Bw::get_option( 'footer_text' ), '' ) . '</div>';
            
            echo Bw::go_social( 'bw-social-uc' );
        ?>
        
    </div>
    <div class="footer-after bw-end-label"><div class="after back-top"><i class="fa fa-angle-up"></i></div></div>
</div>

Could you please help me make a widget area for the footer so i can add one "Newsletter" form (something like mailpoet plugin)? Thanks a lot.

Update. This is the "wp-content/themes/themename/footer.php file

<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package Bad Weather
 */
?>
    </div> <!-- #container -->
</div> <!-- #wrapper -->

<?php wp_footer(); ?>

</body>
</html>
Source Link

Make a widget to my footer

I am using a theme and the developer doesnt want to help me make a widget on the templates/footer.php

The curently code at this php file is

<div class="bw-footer <?php echo isset( $class ) ? $class : ''; ?>">
    <div class="row">
        
        <?php
            $footer_logo = Bw::get_option('footer_logo');
            
            if( $footer_logo ) {
                echo "<div class='footer-logo'><img src='" . esc_attr( $footer_logo ) . "' alt=''></div>";
            }
            
            if ( has_nav_menu( 'footer' ) ) {
                echo '<nav class="navigation-footer">';
                    wp_nav_menu( array( 'theme_location' => 'footer' ) );
                echo '</nav>';
            }
            
            echo '<div class="footer-copy">' . Bw::esc_kses( Bw::get_option( 'footer_text' ), '' ) . '</div>';
            
            echo Bw::go_social( 'bw-social-uc' );
        ?>
        
    </div>
    <div class="footer-after bw-end-label"><div class="after back-top"><i class="fa fa-angle-up"></i></div></div>
</div>

Could you please help me make a widget area for the footer so i can add one "Newsletter" form (something like mailpoet plugin)? Thanks a lot.