-
AuthorPosts
-
February 1, 2023 at 6:22 pm #1396262
Hi a project i am working on has the need for custom woocommerce category pages.
If I create a custom post type and enable the ALB for that post type. I could then insert this custom post type content into the area above or below the category page. This would mean I could add custom sliders, and other ALB elements to make category pages more dynamic with a better UI.
For example – A client wants to sell advertising space on their category pages to prestige suppliers.
Method:
Add custom post type and enable ALB
Add Category Control plugin
Add insert page content plugin
Create the custom content in the new post type
Add insert page shortcode to area above the category page or below
ALB can now be used on category pages above and below the main category content.My question is – Has anyone else that you know of tried something simillar before I dive in?
If the answer is No – No problem.Another option would be to just build a page and re-direct the category to the custom page. I’d use a custom post type to store these categories.
It is a bit hacky but would work I guess. I’d then remove the category from the sitemap.February 2, 2023 at 3:53 am #1396314Hey Thomas,
Thank you for the inquiry.
My question is – Has anyone else that you know of tried something simillar before I dive in?
We haven’t tried this or encountered anyone who has done the same, maybe you’ll be the first.
Another option would be to just build a page and re-direct the category to the custom page. I’d use a custom post type to store these categories.
This is the solution that we usually suggest, doing a 301 redirect from the category page to a custom page built using the layout builder.
Best regards,
IsmaelFebruary 2, 2023 at 10:41 am #1396363Thanks Ismael,
Redirects will be easier but I will probably create a custom post type so that I can organise the new pages more easily.I was looking for a way to preserve the category structure. Technically I think it is possible the way I have suggested but it relies on a lot of components so could become unstable if one of the plugins used is then no longer supported.
I’ll start with redirects for simplicity and a custom post type.
July 3, 2024 at 12:59 pm #1461200I enable ALB shortcode debug mode, design the content of the woocommerce product category page in a tempoary draft page, then copy the shortcodes from the draft to the category page and update/publish.
To turn on theme debug: Goto theme options -> Layout Builder -> Toggle on “Show advanced options” -> Select under Debug Mode (Backend Only) “Enabled for admins only”.
This is less than ideal, but essentially does the same thing, without relying on other plugins.
It would be nice if we could enable ALB editing for product cateogries in a similar way to other / custom posts types like so:/**
* Allow ALB editor on custom post types if not available by default.
*/
add_filter(‘avf_alb_supported_post_types’, function (array $supported_post_types) {
$supported_post_types[] = ‘portfolio’;
$supported_post_types[] = ‘someother_custompost_type’;
$supported_post_types[] = ‘product_cat’; /** <– simply adding this line would be great, but IT DOES NOT WORK / enable ALB editor in woocommerce categories (technically it’s a post type of post, but also has taxonomy type of product_cat */
$supported_post_types[] = ‘product’;
$supported_post_types[] = ‘enhancedcategory’;return $supported_post_types;
});Can a dev help with acheiving a requirement for Woocommerce Category ALB editing pretty please :-D.
I also have this code to enable shop page editing support for ALB editor:
/**
* BETA Feature – Allow editing of shop page in Enfold Avia editor
*/
add_theme_support(‘avia_custom_shop_page’);Thanks
July 3, 2024 at 9:02 pm #1461249Hi,
Unfortunately, you can’t use the advance layout builder when designing category pages.Best regards,
MikeJuly 4, 2024 at 1:28 pm #1461320Hi,
It’s a shame as it prevents custom design, without adjusting templates. In my case not all the categories have the same design.I would have thought this is a much requested feature?
At least my method of pasting the shortcodes for ALB works to attain custom designs for woocommerce categories.
Do you have any details or further explaination as to why ALB doesn’t work with taxonomies like these? If the short codes work (as in my method), then surely it’s possible to add the ALB editor?Thanks
July 6, 2024 at 6:55 pm #1461493Hi,
Unfortunately I have not found any working solutions for this, but if you would like to request this feature the Dev Team has opened a new Github Feature Request for users to place requests and follow them as the Dev Team reviews them.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.