The Post Revisions feature in WordPress saves copies of each edit made to a WordPress post or page. It allows you to revert back to a previous version of that post/page. Sometimes, this can be very helpful, and sometimes it can just clutter your Post/Page edit screen. This tutorial will show you how to disable the Post Revision feature in WordPress or alternatively, to specify the number of post revisions.
[Read more…] about How to disable the Post Revision Feature in WordPress
Blog
How to hide remove reviews 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 reviews 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 reviews tab on product pages in WooCommerce.
/** * Remove/Hide WooCommerce Product Page reviews tab * * @author WPSnacks.com * @link https://www.wpsnacks.com */ .single .woocommerce-tabs ul.tabs li.reviews_tab { display: none; }
Hope this helps with your WordPress problem, enjoy.
How to right align text/items in div/other element using CSS in WordPress
If you are using WordPress for your website, you may want to right 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 right align a div or other item in WordPress.
/** * Right align element * * @author WPSnacks.com * @link https://www.wpsnacks.com */ #yourdivname { text-align: right; }
Just replace #yourdivname with whatever element, either a id(#) or class(.) that you want to have it’s interior elements right aligned. Hope this helps with your WordPress problem, enjoy.
How to change width of Contact Form 7 textarea fields in WordPress
If you are using the Contact Form 7 plugin for WordPress for your contact forms, you may want to change the width of the textarea entry fields. Just add this WordPress Code Snippet to your CSS stylesheet in your current WordPress theme in order to change the width of the textarea entry fields in Contact Form 7 forms.
/** * Change Contact Form 7 textarea width * * @author WPSnacks.com * @link https://www.wpsnacks.com */ .wpcf7-form .wpcf7-form-control-wrap textarea.wpcf7-form-control { width: 250px; }
Just change the width I listed above with whatever width you want your textarea entry fields in Contact Form 7 forms to be. That’s it, now the width of your textarea fields should be changed. Hope this helps, enjoy.
How to hide remove WooCommerce Product Page tabs in WordPress
If you are using WooCommerce for an online store plugin for your WordPress site, you may want to hide or remove the description and reviews tabs 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 and reviews tabs on product pages in WooCommerce.
/** * Remove/Hide WooCommerce Product Page tabs * * @author WPSnacks.com * @link https://www.wpsnacks.com */ .single .woocommerce-tabs ul.tabs { display: none; }
Hope this helps with your WordPress problem, enjoy.
How to style custom widget areas using CSS
Sometimes your WordPress theme just doesn’t have enough widget areas and you may need to add some additional custom widget areas to your WordPress theme and then style them using your stylesheet. This WordPress tip will show you how to style your newly added custom widget areas using CSS.
[Read more…] about How to style custom widget areas using CSS
Top 5 WordPress Detailed Visitor Statistics Plugins of 2011
Having a detailed visitor statistics plugin is a great addition to any WordPress blogger or site owner’s toolbox. Choosing the perfect visitor details plugin can be hard, so let WPSnacks help with our picks for the Top 5 WordPress Statistics Plugins currently for 2011.
[Read more…] about Top 5 WordPress Detailed Visitor Statistics Plugins of 2011
How to use shortcodes in your WordPress theme template files
Sometimes, while developing or customizing a WordPress theme or template files, it can be very useful to be able to execute a shortcode inside a template page instead of only within your WordPress Post or Page content. Just add this code below anywhere in your theme’s template pages to execute your shortcode using the do_shortcode() WordPress function:
[Read more…] about How to use shortcodes in your WordPress theme template files
How to create a shortcode to display the WordPress theme path
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 theme path 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 image paths and other text that may have displayed the theme path. You can use a shortcode to find the current WordPress theme’s stylesheet directory and display that path, so no matter where the theme is used, it will display the correct path, which means you won’t have to change it if you move the theme to a new location. I use this often when developing themes for clients so that when I put an image inside the themes image folder during development, when the theme is later placed on the client’s server, the image path still works without me having to change it. 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 theme’s path.
[Read more…] about How to create a shortcode to display the WordPress theme path
How to change the WordPress breadcrumbs Home link in StudioPress Genesis
If you have breadcrumbs enabled in your StudioPress Genesis theme, you may want to change the WordPress breadcrumbs Home link. Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to change the breadcrumbs home link.
[Read more…] about How to change the WordPress breadcrumbs Home link in StudioPress Genesis