• Resolved qubecharity

    (@qubecharity)


    Hi I wrote a ticket a few weeks back here because I want to add actions to the vendor shop template so I can hide/remove the filter and ‘sort by’ bar. As all my vendors will only have 1-5 products so there is no need for this and it will confuse customers

    You said I could use this code
    if ( ! WCV_Vendors::is_vendor_page() && ! WCV_Vendors::is_vendor_product_page( $post->post_author ) ) { //add unhook here }

    But I don’t think I’m using right as I can’t get the code to work. I’m now using the pro plugin, will that matter? I’ve tried the below…

    if ( ! WCV_Vendors::is_vendor_page() && ! WCV_Vendors::is_vendor_product_page( $post->post_author ) ) { 
    .thb-shop-title{ display:none;
    }
    if ( ! WCV_Vendors::is_vendor_page() && ! WCV_Vendors::is_vendor_product_page( $post->post_author ) ) { 
    <style>.thb-shop-title{ display:none</style>
    }
    function vendor_store_style() {
    if ( ! WCV_Vendors::is_vendor_page() && ! WCV_Vendors::is_vendor_product_page( $post->post_author ) ) { 
    		?> <style>
    .thb-shop-title{ display:none !important;
    			</style>
    		<?php
    	}
    }
    add_action( 'wp', 'vendor_store_style' );

    Any help would be hugely helpful

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Vendor shop template’ is closed to new replies.