This topic has 13 replies, 5 voices, and was last updated 8 years, 7 months ago ago by Robert Hall
Hello,
I need to find a solution to have a menu with novelties.
I know that in terms of database there is a meta key called “product_new” that can be added as enable and the new products can have automatically the tag “new”.
I would like to have a menu with these products.
I know that I can create a new category called novelties but this is not practical as besides adding the tag, I need to assign and remove the products to a category and that is a lot of maintenance (I can create a query to assign and remove the products, but it’s a lot of work and somehow risky).
I’m quite proficient with databases, but I’m pretty sure that you have other customers that are not and they have the same requirement as I have.
Can you tell me if there is any way to do it without creating a category?
Thanks in advance
José
Hello,
You need mark products as new in Products editor and you can create page for new products, then use Products element in Visual Composer editor and select type “New” to display new products.
Best regards,
Jack Richardson.
Hello,
Did you understand my question?
You answer seems related with creating products (where I don’t need help), marking them as new (where I don’t need help) and displaying them in one block of a page (that I don’t need).
What I need is to use those products marked as new, in a menu. Like I can have a menu for a brand, or category, I would like to know how to have a menu based in the tag “new”.
Thanks in advance.
José
Hello,
Please take our apologies, but there is no such feature in the theme.
Regards,
Eva Kemp.
Hello Eva,
And there is not workaround? Only option is to create a category NEW? That is not practical.
Luckily I know how to assign/remove products to a new category directly in the database, still it will take some work. Other customers without database knowledge that would need to add every month 50 or 100 products to the category and then need to remove again after one month, will lose a lot of time.
Regarding the menu “NEW” I would like to create it with a different font color, let’s say RED to draw customers attention. Can I do it? Custom CSS?
Thanks
José
Hello.
Yes. Please rename default.custom.css in wp-contents/themes/legenda to custom.css and enable it via theme-options ->custom.css. Will be glad to provide you with css code as soon as “new” menu element appears on site. Please let us know about it.
Regards,
Brian Johnson
You may use following code as an example in custom.css:
.main-nav .menu > li:nth-child(2) > a{color:red!important;}
Number 2 corresponds the top level menu items.
Regards,
Brian Johnson
Hello,
Corresponds means that I have to replace 2 by the name of the menu? Or corresponds means that it will change all top level menus items to red?
I want all the top level menus to be as they are at the moment and the new one “NEW” to be created to be red.
Thanks
José
Hello,
Please provide us with wp-admin panel credentials in Private Content.
Regards,
Eva Kemp.
Hello Eva,
I’ve just created the category NEW.
Below the credentials
Tks in advance
José
Hello,
I’ve added this code in custom.css file:
li.menu-item.menu-item-type-taxonomy.menu-item-object-product_cat.menu-item-13251 > a {
color: red !important;
}
Now only “New” menu item has red color.
Please check.
Best regards,
Jack Richardson.
It’s perfect. Tks. You can close this topic.
Hello,
You’re welcome!
Regards,
Robert Hall.
The issue related to '‘New items’' has been successfully resolved, and the topic is now closed for further responses