Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Add HTML / Shortcode after Header on Vendor Shop page
- This topic has 9 replies, 2 voices, and was last updated 5 years, 9 months ago by WCFM Forum.
- AuthorPosts
- January 23, 2019 at 12:19 pm #44791andreasenglowskiParticipant
Hi,
is it possible to add some HTML / Shortcode on the vendor shop page? Want to add a search form and and add banner under the header.
Thanks in advance,
Andi - January 23, 2019 at 4:44 pm #44818WCFM ForumMember
HI,
Yeah sure, you may add your custom content on this hook –
do_action( 'wcfmmp_before_store' );
Thank You
- February 4, 2019 at 8:32 am #46513andreasenglowskiParticipant
Hi, sorry for late reply. sorry if its a newby question but how do i do that? or where do i find the hook?
thanks in advance,
andi
- February 4, 2019 at 8:56 am #46514WCFM ForumMember
Hi,
You don’t have to find out this hook.
You just have to add your content using this hook.
Between, are you comfortable with WP hook/filter coding?
Thank You
- February 4, 2019 at 9:15 am #46522andreasenglowskiParticipant
Hi, thanks for blazing fast reply. No not really comfortable, can you help me by giving an example? For example if i just want to add “<h3> my heading </h3>” right under the header of the vendor page. would be great 🙂 and sorry for stupid question ^^
Thanks
- February 4, 2019 at 5:04 pm #46597WCFM ForumMember
Hi,
it’s OK.
add_action( 'wcfmmp_before_store', function() { echo '<p>I am Here ....</p>'; });
Add this code to your child theme’s functions.php and check.
Thank You
- February 5, 2019 at 5:16 pm #46777andreasenglowskiParticipant
Many many thanks, its working but not as expected since the html comes before the header. Do you have a idea?
Thanks in advance,
AndiAttachments:
You must be logged in to view attached files. - February 6, 2019 at 5:22 am #46804WCFM ForumMember
Hi,
Well, you asked me for code which allow to add some custom HTML under theme header.
Where you exactly you want to add these?
Thank You
- February 8, 2019 at 10:38 am #47225andreasenglowskiParticipant
Hi, sorry if i wasnt descriptive enough. The problem is that its not coming after header its before header. guess i have to change the priority… will check and let you know 🙂
thanks,
andi - February 8, 2019 at 3:00 pm #47281WCFM ForumMember
NO issues, let me know!
- AuthorPosts
- The topic ‘Add HTML / Shortcode after Header on Vendor Shop page’ is closed to new replies.