How Do I Make My Footer Full Width in WordPress?

In order to make your footer full width in WordPress, you will first need to create a new custom post type. Name it “Footer” and then add the following code to your custom post type’s header.

Now that your footer is formatted as a full width post type, you will need to add a custom template to your theme. Name it “Footer.

php” and add the following code to it.

As you can see, the code above simply turns on full-width support for the footer if the wp_footer_style option is set to “full-width”. If it is not set to “full-width”, then the default footer template will be used.

Now that your footer is formatted as a full width post type and template, you will need to add a row of footer widgets to your sidebar. To do this, go to your theme’s functions.

php file and add the following code.

add_action( ‘widgets_init’, ‘my_footer_widgets_init’); function my_footer_widgets_init() { register_sidebar( ‘footer-left’, ‘Footer’, array( ‘title’ => __( ‘Footer Left’, ‘mythemes’ ), ‘id’ => ‘footer-left’, ‘before_widget’ => ‘

  • %3$s
  • ‘, ‘after_widget’ => ‘

    ‘, ), ); }

    As you can see, the code above registers a row of footer widgets in the sidebar named “Footer Left”. The title of the widget is set to “Footer”, the id is set to “footer-left”, and the before_widget and after_widget sections are set to the appropriate markup.

    Now that you have created your footer post type and template, added a row of footer widgets to your sidebar, and set the wp_footer_style option to “full-width”, your footer will be full width in WordPress!.