Home Forums Basel support forum Sort By & Filter by Price

Sort By & Filter by Price

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #15432

    ultime
    Participant

    Hi
    I tried to add into custom CS, to remove the sort by section as we can’t remove from widget section, but it doesn’t work. Besides, how can we remove the price filter too, into the filter from shop page:
    select.orderby {
    display: none;
    }

    best

    #15435

    Artem Temos
    Keymaster

    Hello,

    Thank you for choosing our theme and contacting us.

    Try to add the following code snippet to the functions.php file in the child theme to remove these custom widgets

    add_filter( 'basel_use_custom_price_widget', '__return_false', 10 );
    add_filter( 'basel_use_custom_order_widget', '__return_false', 10 );

    Kind Regards
    XTemos Studio

    #15437

    ultime
    Participant

    Hi, if I do this I have a blank page, maybe its missing something

    #15438

    Artem Temos
    Keymaster

    Be sure that you add it to the end of the file. Send us the final code of the whole file.

    #15439

    ultime
    Participant

    <?php

    add_action( ‘wp_enqueue_scripts’, ‘basel_child_enqueue_styles’, 1000 );

    function basel_child_enqueue_styles() {
    if( basel_get_opt( ‘minified_css’ ) ) {
    wp_enqueue_style( ‘basel-style’, get_template_directory_uri() . ‘/style.min.css’, array(‘bootstrap’) );
    } else {
    wp_enqueue_style( ‘basel-style’, get_template_directory_uri() . ‘/style.css’, array(‘bootstrap’) );
    }

    wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘bootstrap’) );
    }
    add_filter( ‘basel_use_custom_price_widget’, ‘__return_false’, 10 );
    add_filter( ‘basel_use_custom_order_widget’, ‘__return_false’, 10 );

    #15440

    Artem Temos
    Keymaster

    Be sure that you are using right ' sign. Not and .

    #20454

    aaronnb
    Participant

    Is it possible to change the filter widget to three columns instead of four?

    #20457

    Artem Temos
    Keymaster

    Hi,

    Could you please provide us your website link so we can take a look and prepare a custom CSS code for you?

    Thank you

    #20458

    aaronnb
    Participant

    thanks.

    #20473

    Artem Temos
    Keymaster

    Try to add the following code snippet to the Custom CSS area in Theme Settings

    .filter-widget {
    	width: 33%!important;
    }
    
    .filters-inner-area>div:nth-of-type(4n+1) {
        clear: none!important;
    }
    
    .filters-inner-area>div:nth-of-type(3n+1) {
        clear: both!important;
    }
    #20581

    aaronnb
    Participant

    Worked like a charm, Thanks!!

    #20583

    Artem Temos
    Keymaster

    You are welcome.

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Sort By & Filter by Price’ is closed to new replies.