• Resolved hodgespodges

    (@hodgespodges)


    Hi guys,

    What would you suggest as a work-around if I want different category labels on different pages? For example on one catalogue, it makes sense for my Category label to be ‘University’, whereas in another catalogue page, this makes no sense at all.
    Currently it’s mandatory (I believe) to select at least one category for each product.
    Is there any way to hide the category on the sidebar and then perhaps just use custom fields instead?
    Or is there any way to remove the necessity of selecting a category for each product?
    I just tried the following code, but that just removes all the titles for Category, Sub-category, custom-fields etc. but leaves all the actual category items themselves.
    .prod-cat-sidebar-cat-title {
    display: none;
    }

    Secondly instead of having an image in one of my catalogues beside the products, I would like to embed a document. I use a plugin to embed documents into pages on the site through shortcodes. I’m not a coder myself but could you recommend how I might add the ability to read shortcodes so that I can add a document in this box as opposed to uploading an image? I’m currently interested in the ‘Detail’ and ‘Thumbnail’ Layouts for this. This is quite necessary for us to find a way of doing this, so I’d be really grateful for your assistance!

    Many thanks,

    Simon

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter hodgespodges

    (@hodgespodges)

    I think I found a work-around for the first part, deduced from information given in this thread https://ww.wp.xz.cn/support/topic/categories-and-sub-categories-display/, and adding the following code:
    .prod-cat-sidebar-category {
    display: none;
    }
    .prod-cat-sidebar-category-title {
    display: none;
    }

    So that’s that part done for now.
    I look forward to hearing your thoughts on my second question.

    Many thanks,

    Simon

    Hi Simon,

    I’m not sure exactly what you mean by embedding a file, but one thing you could do is create a new “File” type custom field. This would allow you to upload a file for each product, a link to which could then be displayed in both the Thumbnail and Detail views. You could then use custom CSS to hide the product images, if you wanted to do that. For example:

    .upcp-thumb-image-div {
    display: none;
    }
    
    Thread Starter hodgespodges

    (@hodgespodges)

    Sorry for not being clear:
    I’m using the following plugin: https://ww.wp.xz.cn/plugins/embed-any-document/ to embed documents into a page.

    I’ve got a work-around at the moment where I just took a small screen capture of the documents I wish to have an image of, and that’ll probably do!

    Many thanks,

    Simon

    Hi Simon,

    Thank you for following up. It most likely wouldn’t be possible to embed a document in that way on the catalog pages. Your workaround is a much safer bet that will not cause any conflicts and is sure to work.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Category Label & Shortcode’ is closed to new replies.