Home Forums Theme Support Dokan Problem with some fields

This topic is: resolved

This topic contains 16 replies, has 2 voices, and was last updated by  Loukia 3 years, 8 months ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #65171

    Loukia
    Member
    Post count: 87

    Hello, i have added the following code into the child theme.

    a.dropdown-toggle {

    display:none;

    }

    .woocommerce ul.products li.product .item-button, .woocommerce-page ul.products li.product .item-button {

    display: none;
    }

    .woocommerce div.product form.cart, .woocommerce div.product p.cart {

    display: none;
    }

    it was working fine but after update i can still see the cart option to the main header.

    also i disabled the option add to cart in the single product page and the option add to cart where the picture of the product appears. it was working fine but now it appeared again

    why?

    #65258

    Nayem
    Moderator
    Post count: 6480

    Hello,

    If you are doing this through child theme then you have to enqueue the style.css file of the parent theme in the function.php file.

    Thanks.

    #65288

    Loukia
    Member
    Post count: 87

    I have already did it.

    add_action( ‘wp_enqueue_scripts', ‘theme_enqueue_styles' );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style', get_template_directory_uri() . ‘/style.css' );
    wp_enqueue_style( ‘child-style',
    get_stylesheet_directory_uri() . ‘/style.css',
    array(‘parent-style')
    );

    #65467

    Nayem
    Moderator
    Post count: 6480

    Please insert !Important in every style. Hope it will work.

    #65514

    Loukia
    Member
    Post count: 87

    sorry but your answer is not clear. i don't understand you

    #65571

    Nayem
    Moderator
    Post count: 6480

    You can try like this-

    .woocommerce div.product form.cart, .woocommerce div.product p.cart {
    display: none !important;
    }

    Thanks.

    #65585

    Loukia
    Member
    Post count: 87

    it works but when i am trying to get rid of the cart on the header the code is this

    a.dropdown-toggle {

    display:none !important;

    }

    but when i put it in the child theme deactivated seller dashboard and user name menu

    #65618

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Which theme are you using?

    #65622

    Loukia
    Member
    Post count: 87

    dokan theme

    #65635

    Nayem
    Moderator
    Post count: 6480

    You can add this line

    .navbar-top-area .dokan-cart-amount-top {
      display: none;
    }
    #65797

    Loukia
    Member
    Post count: 87

    it disables the amount but not the cart and the dropdown arrow

    #65901

    Nayem
    Moderator
    Post count: 6480

    Hello Loukia,

    Please provide your website URL here. Let me check the button css.

    Thanks.

    #66103

    Loukia
    Member
    Post count: 87
    #66111

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Please add this style in your style.css file-

    .navbar-right li:nth-child(1) {
        display: none;
    }
    #66119

    Loukia
    Member
    Post count: 87

    unfortunately is not working. i copied and pasted this code to the child theme style.css but still nothing. on mozilla is ok but not for google chrome

Viewing 15 posts - 1 through 15 (of 17 total)

The topic ‘Problem with some fields’ is closed to new replies.