Metabox for custom post types (and other questions)
-
Hi there,
1. I’m using the Toolset plugin to create custom post types. How can I add the theme custom metabox to those pages?
2. Is it possible to set a special header for single product page, product category and custom post page?
3. The speed of the ajax search is quite slow when loading results, how can I improve this?
4. When I updated to the new version, the headers were messed up. I disabled the minify css in theme settings. This solved the problem. How can I clear the cache of the theme minify?
5. How can I add an account icon before the “my account” text when logged in?
Hello,
1. Our theme metaboxes created for specific post types only. To apply them for your custom types, you will need to customize the file inc/classes/Metaboxes.php
.
2. Unfortunately, there are no such options in our theme. You can specify the header layout globally of for particular page in Dashboard -> Pages.
3. Try to disable the SKU search in Theme Settings -> Header -> Search and measure the search speed without this option.
4. You just need to clear all the cache after the update.
5. Enable the icon in Theme Settings -> Header -> My account links.
Regards
1. Thanks I modified it a bit and it shows up on my custom post types.
However, each custom post type is generated by an user on my website. Is there a way to set custom header by default for these pages? Maybe by creating a function or something? (don’t know how..)
My custom posts use a content template. This template outputs the users content with shortcodes. I don’t know if it’s possible to add a custom metabox to a content template?
4. Where do you clear the cache?
1. Sorry, but we don’t have an instruction for this. It may require an additional code customization.
4. You need to clear your browser cache to see the changes after update. Here is a website with tutorials and guides how to clear the cache in different browsers and devices http://www.refreshyourcache.com/en/home/
Regards