Home Forums Basel support forum Price Filter Ranges

Price Filter Ranges

Viewing 9 posts - 31 through 39 (of 39 total)
  • Author
    Posts
  • #1129

    Artem Temos
    Keymaster

    Hi,

    I’m afraid we cannot help you with this question since it is more connected with woocommerce customiztion. In addition to this you are not able to override method of some class in the child theme.

    #1139

    javilap
    Participant

    Thank you! No problem.

    I have another question for you, I have an image with the size guides for the clothes. How can I add a link in all the pages that opens in a modal window? I mean, adding some kind of code in the structure, not adding this image product for product.

    Do you understand me? Thank u

    #1140

    Artem Temos
    Keymaster

    Hi,

    You can try to add the following code snippet

    <a href="SIZE_GUIDE.jpg" data-rel="mfp">Size guide</a>

    #1142

    javilap
    Participant

    Hello!

    Thank you!
    I have another question, on mobile devices the top bar isn’t appearing the account.

    Could you help me?

    Thank u!

    #1144

    Artem Temos
    Keymaster

    Hi,

    Actually we have hidden right side of the topbar on mobile since it doesn’t fit the space well. If you need we can provide you custom css that will show it for you. Do you need this?

    #1165

    javilap
    Participant

    Hello, yes please!! Sorry I thought I’ve wrote you!

    #1171

    Artem Temos
    Keymaster

    Here is a code snippet that you need to add to your Custom CSS section for mobile devices in Theme Settings

    .topbar-wrapp .topbar-menu {
        display: inline-block;
    }
    #1220

    javilap
    Participant

    Hello! I would like to know how can I select the options on the top bar to appear “Log in” “Register” if I’m not logged, and let “My Account” If I’m logged!

    Thank you

    #1223

    Artem Temos
    Keymaster

    Unfortunately, there is no such ability by default in our theme. You can try to add the following code to your child theme functions.php file to achieve that

    function basel_get_topbar_links() {
      $account_link = get_permalink( get_option('woocommerce_myaccount_page_id') );
    
      if( is_user_logged_in() ) {
        $links['my-account'] = array(
          'label' => esc_html__('My Account', 'basel'),
          'url' => $account_link
        );
      } else {
        $links['register'] = array(
          'label' => esc_html__('Login / Register', 'basel'),
          'url' => $account_link
        );
      }
      return $links;
    }
    
    add_filter( 'wp_nav_menu_items', 'basel_topbar_links', 10, 2 );
    function basel_topbar_links ( $items = '', $args = array(), $return = false ) {
        if ( ( ! empty( $args ) && $args->theme_location == 'top-bar-menu' ) || $return ) {
        $links = basel_get_topbar_links();
        if( ! empty( $links )) {
          foreach ($links as $key => $link) {
            $items .= '<li id="menui-' . $key . '" class="menu-item item-event-hover">';
            $items .= '<a href="' . esc_url( $link['url'] ) . '">' . esc_attr( $link['label'] ) . '</a>';
    
            $items .= '</li>';
          }
        }
    
        }
        return $items;
    }
Viewing 9 posts - 31 through 39 (of 39 total)