1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Custom image dimensions for each category

Discussion in 'HTML & Website Design' started by dabidovic123, Jan 4, 2020.

  1. #1
    Hi everyone and happy new year 2020,

    I need to set up different image dimensions for each category of a website.

    For example,

    To set these dimensions for Category 1:

    Catalog Images = 240 x 320px
    Single Product Image = 470 x 627px
    Product thumbnails = 75 x 100px

    And these dimensions for category 2:

    Catalog Images = 245 x 245px
    Single Product Image = 470 x 470px
    Product thumbnails = 75 x 75px

    I use woocommerce.
    How to do this? Is there any code or filter to affect to that a named category to achieve these settings ?

    Can we use the category ID and how to use it?

    I don't found any code to try for this issue.

    Thank you very much for the help
     
    dabidovic123, Jan 4, 2020 IP
  2. denis bayly

    denis bayly Well-Known Member

    Messages:
    104
    Likes Received:
    28
    Best Answers:
    6
    Trophy Points:
    105
    #2
    denis bayly, Jan 5, 2020 IP
  3. dabidovic123

    dabidovic123 Greenhorn

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Hi denis bayly,
    Thanks for your reply. I checked your link, but there's no code. There are photos but no code.
    Please, I need a Complete syntax of the Code to achieve this task.

    ps. I'm newbie, I can't code by myself.

    Thank you very much for the help.
     
    dabidovic123, Jan 6, 2020 IP
  4. denis bayly

    denis bayly Well-Known Member

    Messages:
    104
    Likes Received:
    28
    Best Answers:
    6
    Trophy Points:
    105
    #4
    denis bayly, Jan 6, 2020 IP