dmhall0 on "Customizr slider and Meta slider"

ساخت وبلاگ

I have been having issues getting the Customizr slider to work with my images. I have found the Meta slider works better for me.

How do I replace the Customizr slider with my Meta slider?

I have discovered this can not be done using the "appearance" "customise" section, so have tried adding using the editor (child theme functions.php) and adding the template include for my Meta slider. But I can not seem to get it to work (my knowledge of php is rather poor!)

this is the code for the template include:

<?php echo do_shortcode("[metaslider id=25]");
?>

I tried adding just that and it did not work so then i tried this:

<? php
add_filter( '__after_header' , 'metaslider_homepage_slider');
function metaslider_homepage_slider() { echo do_shortcode("[metaslider id=25 restrict_to=home]");
remove_action( '__after_header' , array( TC_slider::$instance , 'tc_slider_display' ));
add_action( '__after_header''metaslider_homepage_slider',1);
if (is_home() || is_front_page()) { echo do_shortcode("[metaslider id=25]");
?>

could someone please inform me of where I am going wrong?
thanks

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 313 تاريخ : سه شنبه 29 تير 1395 ساعت: 20:09