I think I figured out the answer. In your footer.php file add a div like that goes outside the footer and assign your footer class to it. For example,
<div class="sticky-footer">
<footer id="colophon" class="site-footer">
<div class="site-info">
<?php
/* translators: 1: Theme name, 2: Theme author. */
printf( esc_html__( 'Theme: %1$s by %2$s.', 'best' ), 'best', '<a href="http://underscores.me/">Underscores.me</a>' );
?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
</div>
And the correct style is :
.sticky-footer { padding:2em; bottom:0; clear:both; background-color:black; color:white; position:static; width:100%; }
Related Posts:
- Get the first image from post content (eg.: hotlinked images)
- Getting failure when using filemtime() with wp_enqueue_style
- How to override pluggable function in theme?
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- How bad is it if I write AJAX functions using wp-load.php?
- How to know if a child theme is being used?
- How to modify an image block in Gutenberg WordPress 5?
- WordPress Settings API error
- How do I show sticky posts on a static front page that also contains content?
- Any walker causes blank menu?
- Grab the first paragraph of each post
- Wrapper class: How to get rid of call_user_func_array() warning?
- Change Genesis Tag from Page Template [closed]
- Why is save_post triggered even when I havent saved the post
- Add custom field automatically to custom page types
- Adding WordPress colorpicker in widget settings
- Similar Posts – NO plugin
- How to add multiple custom widget areas
- What is wrong with this code I have to make a blockquote shortcode
- Add social icons in a theme through custom admin menu
- file_get_contents Not allowed in Themes?
- Best approach to create sites with Modular Content? [closed]
- front-page.php is not Listing in Static Front Page List
- Change file name from wp_generate_attachment_metadata
- Warning/Error in Admin Panel while developing theme
- How do I get the next page of posts link?
- display 20 lines only with the_content
- How do I remove twentyten without ruining what I did?
- Custom theme not visible in Appearance
- Use debugging for add action events
- Obtain full v2 REST url?
- Where can I access my custom page template?
- Including Javascript options
- Show warning if plugin is missing
- How to To Filter wp_enqueue_script() Scripts on Some Pages
- Does WordPress theme customisation API support section hierarchy?
- Custom Theme Bootstrap
- Check if tag, category or author on archive.php
- Editing Footer Information
- How does a mobile WordPress theme differ from a simple theme?
- How to provide support for [gallery] shortcode?
- Developing WordPress Theme using CSS framework like Bootstrap
- WP_Customize_Color_Control omitting # symbol
- Add “Delete” button to my Theme
- Disable dashboard drag&drop
- nothing happen in search form
- How to customize output of plugin
- Override customizer values on a per-menu base
- Theme Inspector “X-Ray”
- Using My Own Classes On Wp Unit Tests
- WordPress Theme Creation [closed]
- Theme support title tag – how to replace the default WP separator (with a filter)?
- Cherry framework – Overriding function in template-general.php
- Javascipt issue on custom theme
- pagination for a custom loop with multiple post types
- Why would changing a child theme to a normal theme pass a Template is missing. error
- Making a child theme for “Airi”
- How to get category lists by name or slug
- In a Gallery with limited image posts, how do I not limit images on single post?
- is using the_posts_navigation() required?
- LESS not working in WordPress [closed]
- How to call a widget in a loop at a specific iteration value?
- How to add custom page elements to the WYSIWYG editor?
- Theme development: menu links a tabbed page with page jumps
- Adding Woocommerce to my own theme, how do I do it?
- What is the structure for a one-page layout?
- Disable redirect canonical
- Best practice for implementing a blog page / section in wp_menu_nav()
- Show only pages you are author of
- how to unlocalize theme/plugin?
- Why nav_menu_css_class doesn’t work with apply_filters?
- Displaying front side empty with one file attached problem
- Can you edit a theme in a text editor?
- Text widget is placing everything side by side. I want to post it above
- Where i must put hooks in overridable functions?
- the_content() not displaying description correctly
- my ajax wont sent the data, please correct my code
- How to hook into wordpress upgrade procedure for a custom theme
- Second page of archive is empty
- Change header image on a particular page
- Alter theme pages on language switch
- Missing hashtag with theme customizer header color
- Customizer_register theme options not saving
- Fail to install theme on development copy of WordPress on Webmatrix
- How to prevent XSS attack in wordpress theme?
- Featured Image Module Randomly Disappears
- Category page with posts from 2 different childcategories
- enqueue script if page is not equal to
- Unable to convert all css and js features to WP theme
- Theme Option’s Save Button is not working
- WPeC – Adding conditional logic to purchases [closed]
- Header is not showing full width
- Custom contact info in user profile not displaying
- How to save the Additional CSS in a CSS file and enqueue it
- Elementor Pro and Astra have different breakpoints – how to salvage?
- Recent posts with comment count in “Sidebar” template [closed]
- HTML to WORDPRESS [closed]
- Isotope overlapping .items because of featured images – HELP! [closed]
- Theme.json: creating different sections of the color palette
- My theme is full of error messages in the “Customize” screen, but nowhere else