• Resolved cowboybebop

    (@cowboybebop)


    Hi,
    I put meta slider in the header.php child theme.

    </header>
    <div id=”overflow-container” class=”overflow-container”>
    <?php
    if ( current_theme_supports( ‘breadcrumb-trail’ ) && !is_search() ) {
    breadcrumb_trail(array(
    ‘separator’ => ‘>’,
    ‘show_browse’ => false,
    ‘show_on_front’ => false)
    );
    } ?>
    <div id=”main” class=”main” role=”main”>
    <?php
    echo do_shortcode(“[metaslider id=369]”);
    ?>

    But unlike other themes, the meta slider is on the left, and I would like it centred. How would this best be done?
    Best,
    Sam

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Ben Sibley

    (@bensibley)

    The .main section is on the left side so it sits next to the sidebar. If you move the metaslider outside of .main leaving it inside of .overflow-container, it should fill the whole space.

    Thread Starter cowboybebop

    (@cowboybebop)

    Hi Ben,
    That worked perfect, thank you!
    For others that may have similar issue, the slider in bold:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    </header>
     <?php
       echo do_shortcode("[metaslider id=369]");
    ?>
    <div id="overflow-container" class="overflow-container">
        <?php
        if ( current_theme_supports( 'breadcrumb-trail' ) && !is_search() ) {
            breadcrumb_trail(array(
                'separator' => '>',
                'show_browse' => false,
                'show_on_front' => false)
            );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Meta Slider integration’ is closed to new replies.