Category : WordPress

Make a copy of your index.php file Rename file to category.php Copy category.php to your child theme Edit category.php in your child them and add the following code right after the tag: <div id=”left-area”> <!– add page title code start here –> <?php if ( have_posts() ) : ?> <header class=”blog-title”> <h1><?php printf( __( ‘%s’, ..

Read more

In this example I wanted to show a hyper link on homepage, but all other pages I wanted to show just the text. So I created the following. For simplicity I used SPAN, but if you use a website builder, you can put class in any type module: <span class=”home-page”><a href=”https://iLocalEverywhere.com” target=”_blank” rel=”nofollow”>iLocalEverywhere</a></span> <span class=”other-pages”>iLocalEverywhere</span> ..

Read more

I’ve looked everywhere to find out what the url is for the PayPal IPN. I’ve only found instructions on how to set it up via PayPal and vague instructions on the notification url is.   I did this on a WordPress website. Basically I created a blank page called IPN and set the notification url ..

Read more

Here’s a function I found where it creates a shortcode where you can place anywhere on your website through the editor, widgets, etc. I use DIVI, so it works with it also. The shortcode after you put function in your themes functions.php is [show_loggedin_as] Put the following in your child themes functions.php function show_loggedin_function( $atts ..

Read more

Add the following code to your child themes functions.php file: // DISABLE WOOCOMMERCE LIGHTBOX function remove_image_zoom_support() { remove_theme_support( ‘wc-product-gallery-zoom’ ); remove_theme_support( ‘wc-product-gallery-lightbox’ ); } add_action( ‘wp’, ‘remove_image_zoom_support’, 100 ); reference: https://generatepress.com/forums/topic/disable-lightbox-image-zoom-wo..

Read more

If you have post tags and you want to use them for your WooCommerce products also, the following will definitely help you out.  It works great, but the only caveat is when you click on the tag itself, it will only show posts related to the tag. If you know how to show both post ..

Read more

In your child themes function.php file, add the following code. /** * Add the product’s short description (excerpt) to the WooCommerce shop/category pages. The description displays after the product’s name, but before the product’s price. * * Ref: https://gist.github.com/om4james/9883140 * * Put this snippet into a child theme’s functions.php file */ function woocommerce_after_shop_loop_item_title_short_description() { global ..

Read more

Sometimes you may not want to have the zoom hoving effect. Here’s some code you can put in your child theme functions.php file If you don’t know how to do or need assistance, feel free to contact us. Add following code in your child theme functions.php file: function remove_image_zoom_support() { remove_theme_support( ‘wc-product-gallery-zoom’ ); } add_action( ..

Read more

In WordPress to remove the divider line between the main content and sidebar area, you need to write the following css in the Customize > Additional CSS section. @media (min-width: 981px) { #main-content .container:before {display: none !important;} } I found this information from this YouTube video: https://www.youtube.com/watch?v=P0qkHS7Wucc NOTE: YouTube video example uses DIVI theme. I ..

Read more