• Resolved kn1g

    (@kn1g)


    Hi,

    just experimenting with WordPress/Metaslider.
    I created the simplest theme possible. Just one index.php and stylesheet.
    Now I loaded MetaSlider like this:

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

    Well, it does not work. The images are just listed. What libaries do I need to load additionally? JQuery, JQuery UI?

    Complete “Website” index.php:

    <!DOCTYPE html>
    <!--[if IE 7]>
    <html class="ie ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html class="ie ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
        <!--<![endif]-->
        <head>
            <meta charset="<?php bloginfo('charset'); ?>">
            <meta name="viewport" content="width=device-width">
            <title><?php wp_title('|', true, 'right'); ?></title>
            <link rel="profile" href="https://gmpg.org/xfn/11">
            <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
            <link rel='stylesheet' href='<?php echo get_template_directory_uri(); ?>/style.css' type='text/css' media='all' />
            <?php wp_head(); ?>
    
        </head>
        <body>
            <div id="mid-positioning">
                <div id="logo">
                    <a href="">
                        <img class="logo" alt="" src="" width="367" height="140">
                    </a>
                </div>
                <nav id="navi">
                    <ul class="sf-menu">
                        <li class="page_item page-item-2">
                            <a href="">
                                        Impressum
                            </a>
                        </li>
    
                    </ul>
                </nav>
                <div class="clear"></div>
                <div id="slider">
                    <?php
                    echo do_shortcode("[metaslider id=434]");
                    ?>
                </div>
    
                <section id="main">
                    <div id="articles"></div>
                    <div id="sidebar">
    
                    </div>
                    <div class="clear"></div>
                </section>
    
                <section id="footer">
    
                </section>
            </div>
        </body>
    </html>

    Link just in case:
    https://www.nmkfs.de/sehenswert_temp/

    You see, the shortcode works and backend is working.

    https://www.ads-software.com/plugins/ml-slider/

Viewing 1 replies (of 1 total)
  • Thread Starter kn1g

    (@kn1g)

    Figured it out myself.
    If anyone is interested, <?php wp_footer(); ?> calls the required libaries. So it works only if the footer Hook is in the code.

Viewing 1 replies (of 1 total)
  • The topic ‘Plain Site – minimal requirements 4 Meta Slider’ is closed to new replies.