Home › Forums › WoodMart support forum › move elements in child theme
move elements in child theme
- This topic has 7 replies, 2 voices, and was last updated 3 years, 3 months ago by
Elise Noromit.
-
AuthorPosts
-
January 19, 2022 at 7:38 pm #346493
loraloraParticipantHello
Please tell me how can I do this:
I am using a WCMP plugin and this plugin creates a taxonomy page. But the problem is that I want to move the description of the page in the child theme to the top (please watch the video 1). I contacted the plugin support with this question, but they do not see the structure that I see (please watch the video 2) as far as I understand the Woodmart theme has a special page structure, and the plugin support team does not see it and cannot help me yet.
Please, can you help me with this?
here is the page with my question in support of the plugin. https://wc-marketplace.com/support-forum/topic/wcmp_bannersec_start-wcmp-theme03/#post-133373
January 20, 2022 at 9:42 am #346649
Elise NoromitMemberHello,
You need to find the hook
woodmart_after_header
you can find it betweenmain-page-wrapper
andcontainer
Please add to the place you need.
Best Regards
January 20, 2022 at 1:36 pm #346719
loraloraParticipantand which file should I override in the child theme then?
January 21, 2022 at 10:12 am #346938
Elise NoromitMemberHello,
This requires plugin customization. Please contact the plugin support and ask them to move the content on this hook:
woodmart_after_header
If you have any questions please feel free to contact us.
Best Regards
January 22, 2022 at 2:33 pm #347173
loraloraParticipantI contacted them, but the plugin support advised me to contact you
“We don’t have particular theme related support and this hook is from your theme. kindly ask the theme author to add the content as per your requirement.”
Attachments:
You must be logged in to view attached files.January 24, 2022 at 10:19 am #347421
Elise NoromitMemberHello,
We need the title function that shows that banner to hook it into another place.
Best Regards
January 26, 2022 at 12:41 pm #348043
loraloraParticipantHello,
I previously forwarded your message to the plugin’s fire team, and I’ve now received a response from them:
“Vendor shop page is a taxonomy page. From this page we can find the vendor id and then show all vendor related data.
If you want to show the vendor banner then you need the vendor id on this page.
So as per your requirement you have to add custom code.
if you have the vendor id then use below code :”global $WCMp;
$vendor = get_wcmp_vendor($vendor_id); // need vendor id here
if( $vendor ){
$image = $vendor->get_image() ? $vendor->get_image() : $WCMp->plugin_url . ‘assets/images/WP-stdavatar.png’;
}Please help me
Attachments:
You must be logged in to view attached files.January 27, 2022 at 11:34 am #348340
Elise NoromitMemberHello,
Our developers have hooked the provided code to the place you wanted:
add_action( 'woodmart_after_header', function () { global $WCMp; $vendor = get_wcmp_vendor( $vendor_id ); // need vendor id here if ( $vendor ) { $image = $vendor->get_image() ? $vendor->get_image() : $WCMp->plugin_url . 'assets/images/WP-stdavatar.png'; } echo $image; } );
However, we do not have
$vendor_id
this value does not relate to our theme and we do not know where to take it.Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register