There have a filter “woocommerce_related_products_args” in woocommerce/templates/single-product/related.php file. I targeted this filter and modify the defaults related products arguments. Just drop the following code in your child theme’s functions.php file: Explaining: 14: Accessing the global $product object variable inside my function. 16-18: Returning early if $product object is empty or there have no products 20:… Keep Reading about How do you display more than 4 related products on products view page
In this article I am explaining the codes in details way. So you can easily create a grid layout for your posts listing page on your site. Step 1: Creating a new template file “page_fw_3cols_blog.php”, adding some custom PHP codes and putting the file in child theme’s folder. Here is the complete code of this… Keep Reading about Creating a Full Width 3 Columns Layout for Blog Page
Step 1: Removing the code of front page 1 widget areas from altitude_front_page_widgets() function. This function is locating in front-page.php file. Step 2: Creating an new function and putting the above code in this function. Here is the complete code of that function. You will add this function above the genesis() function of front-page.php file… Keep Reading about Moving the front page 1 widget area above the site header on Home Page of Altitude Pro Theme
Adding a sliding horizontal email subscription form above the site header. Following actions are taken for this functionality. Install and activate the Genesis eNews Extended Plugin Register new widget area Add the widget area above the site header and setup the eNews Extended widget Add CSS in style.css file Create a JS file and add… Keep Reading about Add a sliding horizontal signup form
This functionality will be very useful for those users who have long parent-sub category list on his/her site. WordPress have default Categories widget. I am adding the toggle effect there and hiding the all sub categories. Clicking on the “+” icon respective sub categories will expend. Just following the bottom steps and achieve this functionality.… Keep Reading about Adding expend/collapse effect in WP Categories Widget
Hiding the some menu items on specific pages by PHP scripts. Example: You have a donate link on nav bar. You are wanting to remove it on home, service, contact us etc pages. Just drop following small PHP scripts in your functions.php file and see the magic: Explaining: If you need any help then you… Keep Reading about Hide menu items on specific pages
Without any plugin you can add the thumbnail or featured image to every terms of selected taxonomies. I did following functionality: Creating a user interface at Genesis Theme Settings page. Enable the featured image option for terms of selected taxonomy Adding a new field in Add/Edit terms form Saving the attachment for terms Step 1:… Keep Reading about Uploading featured image to terms of selected taxonomies
In lib/post-types-and-taxonomies.php file you will get this line: ‘rewrite’ => array( ‘slug’ => _x( ‘portfolio’, ‘portfolio slug’ , ‘genesis-portfolio-pro’ ), ‘with_front’ => false ), There have no filter for it. Still you can alter the portfolio slug without modify the plugin’s file. See the steps below: Step 1: Add the following php scripts in your… Keep Reading about [Genesis Portfolio Pro] How to change the portfolio post type slug?