Upgraded to WordPress 6.0 and have issues? Please check the hotfix which you need to apply.

Okay
  Public Ticket #2730658
Change individual Product page header
Closed

Comments

  • Shehab started the conversation

    Hello, 

    1- How can I change the individual item (product) page header background (either image or color), 
    2- how can I change the same item page title, either manual, or generating the item name itself instead of word "Shop"?
    3- how can I change the same Products page header height ?

    Screenshot  ( https://prnt.sc/10ucgkc )

    Thank you
    Shehab

  •   Milingona replied privately
  •   Shehab replied privately
  •  228
    Milingona replied

    Hello Shehab,

    Please find below the answers to your questions:

    1. You can change the background color and image from Shop page > Page Header Settings.

    2. Fixed by adding the following code at includes/functions.php file

    // Show Product Title on Page Header
    add_filter( 'bakery_page_header_title', 'bakery_page_header_title_single_product', 10, 2); function bakery_page_header_title_single_product( $title, $post_id ) {
    if ( is_product() ) {
    $title = get_the_title( get_the_id() );
    }

    return $title;
    } remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );

    3. Fixed by adding the following code at Bakery > Custom Code > Custom CSS:

    body.single-product .vu_page-header {
        height: 130px;
    }

    Best regards,


    Milingona Support

    Follow on     Envato     Facebook     Twitter

  • Shehab replied

    Thank you for the update,.,

    - by adding these code to the function file,,, when updating the theme on the future, or the wordpress itself, would it effect this code?

    - I tried to change the header height on the CSS code you added, but did not work and nothing got changed.., !?


  •  228
    Milingona replied

    1. Yes, updating the theme will lose the code. You can try using a child theme or save the code and re-add once you update the theme.

    2. Fixed by just adding !important at the CSS code.

    Best regards,


    Milingona Support

    Follow on     Envato     Facebook     Twitter

  • Shehab replied

    Thank you very much

  •  228
    Milingona replied

    You're very welcome!


    Milingona Support

    Follow on     Envato     Facebook     Twitter