Home Forums WoodMart support forum Brand position on single product page

Brand position on single product page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #334298

    LINKPOSITIVE
    Participant

    Hi there,
    I want to set the brand image (that is located on the right of the title by settings) under the summary. Just before meta. How can I do?
    I cannot see in the woocommerce layout files anything about that
    Many thanks

    Cosimo Nicolazzo

    #334524

    Hello,

    Please add this code to the functions.php of the child theme:

    remove_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 3 );
    add_action( 'woocommerce_single_product_summ

    Best Regards

    #334580

    LINKPOSITIVE
    Participant

    Are you sure that you code is complete??
    Seems to be not all what you want to show

    #334634

    Hello,

    Sorry, my bad. Please add this one:

    remove_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 3 );
    add_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 39 );

    Let us know if you have any questions.

    Best Regards

    #334770

    LINKPOSITIVE
    Participant

    no, there are some troubles

    As you can see, the brand is still on the top right and under meta
    I want to show it under summary text, just before variations

    Otherwise I don’t want to have a float right.
    I want to show simply the brand logo under the text

    best regards

    Attachments:
    You must be logged in to view attached files.
    #335005

    Hello,

    Please replace the PHP code with this one:

    add_action( 'init', function() {
    	remove_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 3 );
    	remove_action( 'woodmart_before_sidebar_area', 'woodmart_product_brand', 10 );
    	add_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 39 );
    }, 1100);

    In addition, please add this code to the Theme Settings > Custom CSS > General:

    .product-design-default .wd-product-brands {
        float: none;
        margin-left: 0;
    }
    
    .product-design-default .wd-product-brands a {
        display: inline-block;
        padding: 0;
        min-height: 0;
        background-color: transparent !important;
        box-shadow: none;
    }
    
    .product-image-summary .wd-product-brands a:hover {
        box-shadow: none;
    }

    Best Regards

    #335519

    LINKPOSITIVE
    Participant

    that’s perfect
    many thanks

    #335559

    LINKPOSITIVE
    Participant

    I see a little error.
    You can see the image attached
    If you see there, you can notice that now I have a brand image before product title and one under the meta.
    I don’t need the first one before the title.
    Best regards

    Attachments:
    You must be logged in to view attached files.
    #335685

    Hello,

    Please replace the code provided earlier for this one:

    function woodmart_move_brand(){
    	remove_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 3 );
    	add_action( 'woocommerce_single_product_summary', 'woodmart_product_brand', 39 );
    }
    
    add_action( 'wp', 'woodmart_move_brand', 1200);
    add_action( 'init', 'woodmart_move_brand', 1200);

    You can find the code in functions.php of the child theme.

    Best Regards

Tagged: 

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