Home Forums WoodMart support forum Change Product Brand URLs

Change Product Brand URLs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #423915

    a-s-s
    Participant

    Hi,

    I am building an e-Commerce using WoodMart. I have activated “showing brand in product page” and “showing product brands in product archive”. Everything is working fine.

    The thing is that all of these “brand things” have an href attribute pointing to the shop page (filtered by that brand). I want to replace that href for a different href.

    To do that, I used this custom CSS code:

    const links = document.querySelectorAll(“a[href=’LINK_TO_THE_FILTERED_SHOP_PAGE’]”);
    links.forEach(link => link.href = “NEW_LINK_WHERE_I_WANT_TO_POINT”);

    But it does not work on AJAX loaded content. How can I solve that issue?

    Thank you,

    #423939

    Hello,

    The brand is a Woocommerce attribute. By default, it leads to the page where all the products assigned to this brand is represented.

    Replacing URL would require customization not covered by our WoodMart support.

    You can consider installing any free redirection plugin to implement that.

    If you have any questions please feel free to contact us.

    Best Regards

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