If you are using the StudioPress Genesis Theme Framework for your WordPress site, you may want to change the default comment text that says “Speak Your Mind” when you first install your Genesis Framework theme. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to change the default “Speak Your Mind” text in your comments section.
[Read more…] about How to change default Speak Your Mind comment text in StudioPress Genesis
How to create a shortcode to display the WordPress site url
Shortcodes are a very useful tool when using WordPress. There are often things you may do a lot and using a shortcode helps make it so you can use one instead of retyping a lot of content. Also, if you are a web developer, you may be creating WordPress themes/sites on a development server that will later be transferred to a client’s server. When doing this, the url during development may not be the same as will be after it is transferred over to the client’s live site and server. This can cause extra work after making the transfer editing links and other text that may have displayed the url. You can use a shortcode to find the current site url and display it based on the url the WordPress theme is currently installed on, so no matter where the theme is used, it will display the correct url, which means you won’t have to change it if you move the theme to a new url. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to create a shortcode to display the WordPress site’s current url.
[Read more…] about How to create a shortcode to display the WordPress site url
How to hide product sort by dropdown in WooCommerce in WordPress
If you are using WooCommerce for an online store on your WordPress site, you may want to hide the product dropdown sort by box shown on your Shop page and other product archive pages. Just add this WordPress Code Snippet to your CSS stylesheet in your current WordPress theme in order to hide the sort by drop down in WooCommerce.
/** * Hide WooCommerce Product Sort by dropdown * * @author WPSnacks.com * @link https://www.wpsnacks.com */ .archive .woocommerce-ordering { display: none; }
That’s it, now the product sort by dropdown should be hidden from your product archive pages. Hope this helps, enjoy.
How to fix Custom Post Class not saving in StudioPress Genesis 1.8
If you use the StudioPress Genesis Framework for your WordPress site, you may also use the included Custom Post Class option inside the post pages. This option allows you to specify the post class of a specific post or page by simply typing the name of the post class in the provided field inside the post editor screen. With the latest update, StudioPress Genesis 1.8, the Custom Post Class field does not update and save when you save the page. Today’s snack will show you how to fix it so that the Custom Post Class field updates when you hit save.
[Read more…] about How to fix Custom Post Class not saving in StudioPress Genesis 1.8
How to delete unused post revisions from your WordPress Database
If you are like me, sometimes you update WordPress posts quite a lot, which can lead to a long list of Post Revisions for your posts. While this is very helpful if you need to go back to a recent version of the post, sometimes it can get cluttered.
[Read more…] about How to delete unused post revisions from your WordPress Database
How to confirm your blog configuration with Livefyre after install
I just added the Livefyre WordPress Comments Plugin to WPSnacks.com to handle the comment discussion. After installing and activating the Livefyre plugin in the WordPress dashboard, it gives a link at the top of the screen that says Confirm your blog configuration with Livefyre.com to complete Livefyre’s setup and import your comments. The problem is that for most people, the link just takes you back to Livefyre’s site and never finishes the setup and comment import. Today’s snack shows you how to successfully confirm your blog configuration with Livefyre.com so that you can start using it to handle your site’s comments.
[Read more…] about How to confirm your blog configuration with Livefyre after install
How to get custom field value using a shortcode
Just add this WordPress Code Snippet below to the functions.php file in your current WordPress theme to allow you to get custom field values by simply using a shortcode.
[Read more…] about How to get custom field value using a shortcode
How to make an easy WordPress login link
Are you tired of having to use the default WordPress login url to get to login to your Admin Dashboard? Today’s snack will show you how to make it so http://yoursite.com/login takes you to your WordPress login.
[Read more…] about How to make an easy WordPress login link
How to show your most recent Google+ update
Google+ is Google’s Social Networking Platform. Today’s Snack will show you how to display your most recent Google Plus update on your WordPress site.
[Read more…] about How to show your most recent Google+ update
How to allow shortcodes to work in Contact Form 7 in WordPress
Contact Form 7 is a great plugin to make custom contact forms on your WordPress site. If you are using shortcodes in your WordPress site, you may want to make it so they will work in the Contact Form 7 plugin’s contact forms. 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 Contact Form 7 plugin’s contact form.
[Read more…] about How to allow shortcodes to work in Contact Form 7 in WordPress