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
Code Snippets
How to left align text/items in div/other element using CSS in WordPress
If you are using WordPress for your website, you may want to left align a div or other element or item on your website. Just add this WordPress Code Snippet to your CSS stylesheet in your current WordPress theme in order to left align a div or other item in WordPress.
/** * Left align element * * @author WPSnacks.com * @link https://www.wpsnacks.com */ #yourdivname { text-align: left; }
Just replace #yourdivname with whatever element, either a id(#) or class(.) that you want to have it’s interior elements left aligned. Hope this helps with your WordPress problem, enjoy.
How to hide remove description tab on WooCommerce Product Page
If you are using WooCommerce for an online store plugin for your WordPress site, you may want to hide or remove the description tab on the WooCommerce Product Page. Just add this WordPress Code Snippet to your CSS stylesheet in your current WordPress theme in order to hide the description tab on product pages in WooCommerce.
/** * Remove/Hide WooCommerce Product Page description tab * * @author WPSnacks.com * @link https://www.wpsnacks.com */ .single .woocommerce-tabs ul.tabs li.description_tab { display: none; }
Hope this helps with your WordPress problem, enjoy.
How to make a shortcode to display an Adsense Ad
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
How to add a Paypal Donate button link to your site using a shortcode
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
How to add a Link to a Random WordPress Post without using a plugin
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
How to show the comment count for a certain WordPress post using a shortcode
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
How to allow shortcodes to work in WordPress text widgets
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
How to change comment is awaiting moderation text in StudioPress Genesis
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
How to remove website url field from WordPress comment form in StudioPress Genesis
If your site allows comments, you may not want the comment form to ask for a website url from the commenter. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to make it so your comment form no longer asks for the commenter’s website url.
[Read more…] about How to remove website url field from WordPress comment form in StudioPress Genesis