New Landing How can we help? Themeforest Theme Support Dante how to override banner on category/ archive pages

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Dante
  • #119843
    goldpig
    Member
    Post count: 11

    Hello, you can see what I am trying to do here:
    https://www.chinesecoins.com/product-category/panda-coins/

    I am using this plugin:

    WooCommerce Category Banner

    and want to be able to customize the banner image for each category. Unfortunately, I don’t know how to get rid of the default one showing.

    Please note, I would like to keep the associated text and have it overlay the banner I choose with the plugin. It would also be cool to put whatever text I like to overlay this area on each product category page like this.

    Look forward to your reply, have purchased two of your themes and love your work.

    Thanks,
    Richard

    #119908
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit woocommerce-category-banner.php at /wp-content/plugins/woocommerce-category-banner/

    Find this code:-
    echo "<img src='" . $url . "' class='category_banner_image' />";
    Change to:-
    echo '<style>.page-heading{background-image: url("'.$url.'") !important;background-position: center top;background-repeat: repeat;background-size: auto auto;}</style>';

    Thanks
    Mohammad

    #120112
    goldpig
    Member
    Post count: 11

    Hello, thanks for your reply but it didn’t work.
    See: https://www.chinesecoins.com/product-category/panda-coins/

    It is now as if the plugin were not installed, showing the default image and not the one uploaded through the plugin.

    #120124
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me wordpress admin login detail so i can check and resolve the issue.
    Thanks
    Mohammad

    #120126
    goldpig
    Member
    Post count: 11
    This reply has been marked as private.
    #120128
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue by using same code so please check it now. You forgot to paste echo so it did not work.
    Thanks
    Mohammad

    #120138
    goldpig
    Member
    Post count: 11

    Hi Mohammad, that’s great thanks!

    Do you know how to insert a break (and for it to work) on the product category name/ title? <br> doesn’t do it..

    #120141
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not getting you clearly so please attach a marked screenshot.
    Thanks
    Mohammad

    #120143
    goldpig
    Member
    Post count: 11
    This reply has been marked as private.
    #120150
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-
    .term-2 .page-heading h1{width:150px !important;}

    Thanks

    #120215
    goldpig
    Member
    Post count: 11

    thanks but this does not allow the <br> to work in the area shown on the previous screenshot. Let me know if you can get it to work.

    Cheers!

    #120268
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am afraid that its not possible.
    Thanks
    Mohammad

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register