• 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

Functions.php

How to add an Adsense Ad after every post in StudioPress Genesis

April 5, 2016 by admin 2 Comments

Google’s Adsense Ads are a great way to earn money from your site’s traffic. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to add an Adsense Ad after every post in a site running on the StudioPress Genesis Framework.
[Read more…] about How to add an Adsense Ad after every post 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: Ads, Functions.php, StudioPress Genesis

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 move the WordPress breadcrumbs in StudioPress Genesis

November 6, 2015 by admin Leave a Comment

If you have breadcrumbs enabled in your StudioPress Genesis theme, you may want to move or reposition the WordPress breadcrumbs. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to move the breadcrumbs to another location.
[Read more…] about How to move the WordPress breadcrumbs 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: Functions.php, Links, Pagination, StudioPress Genesis, Templates

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

How to make a shortcode to display an Adsense Ad

October 11, 2015 by admin 4 Comments

Google Adsense Ads are a great way to earn money from your blog or site. Shortcodes are very useful to bloggers too and can be used to easily display an Adsense Ad that you created and setup in your Google Adsense Account. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to make a custom Shortcode to display an Adsense Ad in WordPress.
[Read more…] about How to make a shortcode to display an Adsense Ad

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: Ads, Functions.php, Shortcodes

How to add a Paypal Donate button link to your site using a shortcode

October 10, 2015 by admin Leave a Comment

Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to create a shortcode that allows you to add a Paypal Donate button link on your site.
[Read more…] about How to add a Paypal Donate button link to your site using a shortcode

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: Functions.php, Paypal, Shortcodes

How to add a Link to a Random WordPress Post without using a plugin

October 5, 2015 by admin Leave a Comment

Just add this WordPress Code Snippet below to the functions.php file in your current WordPress theme to allow you to add a link to a random WordPress post without using a plugin. This is the function I used to add the “Jump To A Random Snack” Button Link in the bottom of the right sidebar here at WPSnacks.
[Read more…] about How to add a Link to a Random WordPress Post without using a plugin

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: Functions.php, Links, Widgets

How to show the comment count for a certain WordPress post using a shortcode

October 5, 2015 by admin Leave a Comment

Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to show the comment count for a certain WordPress post using a shortcode.
[Read more…] about How to show the comment count for a certain WordPress post using a shortcode

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: Comments, Functions.php, Shortcodes

How to allow shortcodes to work in WordPress text widgets

October 1, 2015 by admin Leave a Comment

If you are using shortcodes in your WordPress site, you may want to make it so they will work in text widgets. This can be especially useful if you are using a plugin that produces a shortcode to call the plugin and want to display it in a sidebar or other widget area. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to make it so your shortcodes will work when placed in a text widget.
[Read more…] about How to allow shortcodes to work in WordPress text widgets

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: Functions.php, Shortcodes, Widgets

How to change comment is awaiting moderation text in StudioPress Genesis

September 27, 2015 by admin 1 Comment

If your site allows comments, you may want to set it up to where you have to approve comments before they appear on the site. When this setting is enabled, commenters see a message after posting a comment telling them that their comment is awaiting moderation. You can change that comment awaiting moderation message text in StudioPress Genesis. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to change the comment is awaiting moderation text to a custom message.
[Read more…] about How to change comment is awaiting moderation 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: Comments, Functions.php, StudioPress Genesis, WordPress Admin

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Go to page 6
  • Go to Next Page »

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