Home Forums WoodMart support forum move elements in child theme

move elements in child theme

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #346493

    loralora
    Participant

    Hello

    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

    #346649

    Hello,

    You need to find the hook woodmart_after_header you can find it between main-page-wrapper and container

    Please add to the place you need.

    Best Regards

    #346719

    loralora
    Participant

    and which file should I override in the child theme then?

    #346938

    Hello,

    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

    #347173

    loralora
    Participant

    I 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.
    #347421

    Hello,

    We need the title function that shows that banner to hook it into another place.

    Best Regards

    #348043

    loralora
    Participant

    Hello,

    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.
    #348340

    Hello,

    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

Viewing 8 posts - 1 through 8 (of 8 total)