简体   繁体   中英

How to use theme block into custom theme Magento

I have a paid Magento template. and it has some features like testimonials blog etc. Also i have a custom theme and i want to use the testimonials feature in custom theme which is another store. I have copy all the files into my custom theme. and i am trying to display like below code. but nothing showing.

<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('magentothem/testimonial/sidebar/slider.phtml')->toHtml(); ?>

Basically ('core/template') was not related to this module. Here you should use to correct block class name.

('testimonial/sidebar')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM