How to let the sub sites user Meta slider.

Hi Patrick,

Thanks for pointing me in the right direction about set slider.

how to let registering Blog URL dropdown show at home page

How to let the sub sites cn.24hws.com user same as main site’ Mata slider.

In my sub site I see have Meta Slider plugin, and preview is working but the slider not show up at front page.

I add Template Include code to Features Setting.

<?php echo do_shortcode(“[metaslider id=9]”:wink:; ?>

Where is the file for sub sites,

Do I need do all the process same like main site?

Thanks!

  • Vaughan
    • Support/SLS MockingJay

    Hi @hi999

    I’m not familiar with it personally, But yes each subsite would need to be set up the same if they are all using the same theme. so each subsite would need that same id number (9) for the meta slider.

    But let me just ask @patrick Cohen for confirmation on this as he may know more about your situation than I do.

    Thanks

  • hi999
    • The Crimson Coder

    Hi Vaughan,

    Thank you for support.

    In my sub site there is already have Meta Slider plugin, and preview is working but how to show up at sub site front page?

    Where is the file for sub sites?

    I add Template Include code to Features Setting.

    <?php echo do_shortcode(“[metaslider id=9]”:wink:; ?>

    but not work.

    What I should do?

    Could you contact Patrick,please.

    Thanks!

    In your child-theme, create a folder named lib. Inside that folder, create another folder named templates. Inside that, create a folder named wp-template.

    Then you’ll need to copy panel-home.php from /lib/templates/wp-template/ in blogs-mu to /lib/templates/wp-template/ in your child-theme.

    Your folder structure should look like the 1st screenshot below.

    Now in panel-home.php of your child-theme, you’ll want to comment out lines 9 to 13 inclusively so they look like this:

    <!–<?php if($tn_blogsmu_featured_img_url != “”:wink: { ?>

    <img src=”<?php echo stripslashes($tn_blogsmu_featured_img_url); ?>” alt=”<?php bloginfo(‘description’:wink:; ?>” />

    <?php } else { ?>

    <img src=”<?php echo get_template_directory_uri(); ?>/_inc/images/top-default.jpg” alt=”<?php bloginfo(‘description’:wink:; ?>” />

    <?php } ?>–>

    Then on the blank line just below that, add the Meta Slider Template Include code that is automatically generated by the slider plugin when you save your slider (2nd & 3rd screenshots).

    Finally, save that file, and upload the child-theme lib folder (and all its contents including your edited panel-home.php) to your blogs-mu-child theme on your site.

    Now when you select “Image Intro” in the Features Settings of your blogs-mu-child theme options panel, you will see your new slider instead of the image.

  • PC
    • WPMU DEV Initiate

    Hey there,

    Thanks for coming to the live chat.

    I am sure @vaughan would be back on this thread soon but I would like to quickly add that you don’t add php code to your Custom CSS. That is only for CSS changes.

    If you want to integrate a slider on the subsites, better use new Blog Templates : https://premium.wpmudev.org/project/new-blog-template/ and create a template blog.

    Post that whatever subsite is created, it would copy the plugin settings too.

    The reason : If you simply add the code to the theme files, it would only show on the sites where you have got the meta slider enabled and have created a slider with id=9

    I hope that helps.

    Cheers, PC

  • hi999
    • The Crimson Coder

    Hi PC,

    Your support is helpful.

    I want to copy the main site to sub site. I see the new blog template not work with main site.

    I tried copy all the panel-home.php from child themes and change the new meta slider id=9

    to My Custom CSS plugins but not work.

    In my sub site there is already have Meta Slider plugin, and preview is working but how to show up at sub site front page?

    Where is the file for sub sites?

    I add Template Include code to Features Setting.

    <?php echo do_shortcode(“[metaslider id=9]”:wink:; ?>

    but not work.

    What I should do?

    Could you contact Patrick,please.

    Thanks!

  • hi999
    • The Crimson Coder

    Hi Patrick,

    Thank you for support at chat, but my internet connect lost final.

    so I can not see your note.

    Sub site meta slider not working.

    Now sub site have child themes

    sub site have metaslider, and preview metaslider is working

    <?php echo do_shortcode(“[metaslider id=9]”:wink:; ?>

    Then

    http://subsite/wp-admin/themes.php?page=options-functions.php

    Features settings

    Image Intro Is Image Intro ???

    <?php echo do_shortcode(“[metaslider id=9]”:wink:; ?> Is add this code ???

    I didn’t do panel-home.php, process. Should I do it?

    I can not find this file at sub site by FTP.

    Now in panel-home.php of your child-theme, you’ll want to comment out lines 9 to 13 inclusively so they look like this:

    Then on the blank line just below that, add the Meta Slider Template Include code that is automatically generated by the slider plugin when you save your slider (2nd & 3rd screenshots).

    The main site have this step.

    What I should do?

    Thanks!

  • Patrick
    • Support Monkey

    @hi999

    Whoops, this one got away from me. Terribly sorry about that. :slight_frown:

    Your child-theme issues have been addressed in your other thread here:

    https://premium.wpmudev.org/forums/topic/how-to-let-registering-blog-url-dropdown-show-at-home-page

    As for creating a single slider to use on all sites in the network, I’m afraid I don’t think that will work. I’ve tested with the Meta-Slider and it doesn’t. I also have not been able to find one that does.

    So it appears that you will need to create a slider for each site. To make that easier, try this plugin that enables you to share media across your entire network:

    http://wordpress.org/plugins/network-shared-media/

    That way, at least you’ll only have to upload your slide images once.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.