Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › How to modify store vendor dashboard home page with custom content?
- This topic has 5 replies, 2 voices, and was last updated 4 years, 6 months ago by Sarmistha Chakraborty.
- AuthorPosts
- May 2, 2020 at 3:01 pm #125677salenishParticipant
Hi, I would like to add shortcodes and other custom content (i.e. banners, links) on the store dashboard home page right below the welcome block and above the store sales stats blocks.
Can you please advise which filter I should use or which template I can edit?See the screenshot attached. The red line indicated where I’d like to insert additional content.
Kind regards, Aleks
Attachments:
You must be logged in to view attached files. - May 3, 2020 at 10:18 pm #126197Sarmistha ChakrabortyMember
Hello,
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
add_action('wcfm_after_dashboard_welcome_box','wcfm_after_dashboard_welcome_box_custom_info'); function wcfm_after_dashboard_welcome_box_custom_info() { $vendor_id = get_current_user_id(); /***** print here your required vendor information*****/ }
Thanks.
- May 3, 2020 at 11:48 pm #126229salenishParticipant
Hi,
this doesn’t seem to be working. Can you please include a screenshot with a “Hello world” example of this tweak?Thank you for helping me with this.
Aleks- May 4, 2020 at 3:03 pm #126430Sarmistha ChakrabortyMember
Hello,
To Print “Hello World”, (PFA)
add_action('wcfm_after_dashboard_welcome_box','wcfm_after_dashboard_welcome_box_custom_info'); function wcfm_after_dashboard_welcome_box_custom_info() { $vendor_id = get_current_user_id(); /***** print here your required vendor information*****/ echo "Hello World"; }
Thanks.
Attachments:
You must be logged in to view attached files.
- May 5, 2020 at 2:55 am #126741salenishParticipant
Thank you, works perfectly! 🙂
- May 5, 2020 at 1:58 pm #126892Sarmistha ChakrabortyMember
You are always welcome 🙂
Let me know if there’s anything else we can help you with.
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.
- AuthorPosts
- You must be logged in to reply to this topic.