• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WordPress Tips, Code Snippets, and How To Tutorials

  • Home
  • Blog
  • Tips
  • Snippets
  • Tutorials
  • Contact

Footer

How to add a widget area before the footer of your StudioPress Genesis theme on WordPress

October 29, 2019 by admin Leave a Comment

If you are using a StudioPress Genesis theme on your WordPress website you may want to add a widget area before the footer. You can then add this code to your functions.php file to add a widget area before the footer of your StudioPress Genesis theme without using a plugin on there. It may be a good idea to backup your WordPress website before you make updates to it on there.

/**
 * Add widget area before footer
 *
 * @author WPSnacks.com
 * @link https://www.wpsnacks.com
 */
genesis_register_sidebar( array(
	'id'          => 'widget-before-footer',
	'name'        => __( 'Before Footer Widget', 'yourtheme' ),
	'description' => __( 'This is the widget before the footer.', 'yourtheme' ),
) );
function addwidgetbeforefooter() {
	genesis_widget_area( 'widget-before-footer', array(
			'before' => '<div class="widget-before-footer widget-area">',
			'after'  => '</div>',
		) );
}
add_action('genesis_before_footer', 'addwidgetbeforefooter');

If you want to style the widget you can do that in css using .widget-before-footer in your stylesheet or you can read this post on how to style your custom widget area on your website for more information on how to do that on there. You can replace the yourtheme title with the name of your WordPress theme.

Now if that works for you it would add the new widget area to your StudioPress Genesis theme before the footer on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: Footer, Functions.php, StudioPress Genesis, Templates, Widgets, WordPress Theme

How to change the number of WordPress footer widgets in StudioPress Genesis

November 12, 2015 by admin Leave a Comment

If you are using StudioPress Genesis, you may want to change the number of footer widgets. Often it is set to 3 footer widgets by default, but you can change this number from within the functions.php file. Just edit this line of code in the functions.php file in your current WordPress theme in order to change the number of footer widgets your StudioPress Genesis theme has.
[Read more…] about How to change the number of WordPress footer widgets in StudioPress Genesis

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Footer, Functions.php, StudioPress Genesis, Widgets

How to remove the Footer Credits and Return to Top text in StudioPress Genesis

October 27, 2015 by admin Leave a Comment

If you are using the StudioPress Genesis Framework for your WordPress site, you may want to completely remove the Footer Credits and Return to Top link from your footer. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to easily remove the entire footer generated by Genesis. Your Footer Widgets will still work correctly.
[Read more…] about How to remove the Footer Credits and Return to Top text in StudioPress Genesis

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: Footer, Functions.php, StudioPress Genesis

Primary Sidebar

Hey, We Deliver... Anywhere!

Enter Email Address below to receive our snacks via email:

Join Over 1200 Readers!

Jump To A Random WordPress Tip

Copyright © 2019 • wpsnacks.com