Acme Themes

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Child-Theme – Page with slider #12532
    marcoluca1988
    Participant

    Thanks I fix it!

    in reply to: Child-Theme – Page with slider #12343
    marcoluca1988
    Participant

    Thank you. I hope that i will pubblish it as soon as possible. To do it i must resolve some problems like that. If it’s possibile to do off line, i would like to know how we can add a full width page (if in customizer there is a general sidebar). I use a child theme and it’s working. But, for example, at feature page widget, in cellular mode display text like this:

    L
    o
    r
    em
    Ep
    s
    sum

    and not:

    Lerem
    Ipsum

    i just create a new template with:
    _______________________________________________________________
    <?php
    /*
    Template Name: No Sidebar Template
    */

    get_header();
    global $mercantile_customizer_all_values;
    $mercantile_enable_feature = $mercantile_customizer_all_values[‘mercantile-enable-feature’];
    if(
    ( is_front_page() && 1 != $mercantile_enable_feature )
    || !is_front_page()
    ){
    ?>
    <div class=”wrapper inner-main-title”>
    <div class=”container”>
    <div class=”row”>
    <header class=”entry-header col-md-6 init-animate fadeInDown1″>
    <?php the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); ?>
    </header><!– .entry-header –>
    <?php
    if( 1 == $mercantile_customizer_all_values[‘mercantile-show-breadcrumb’] ){
    mercantile_breadcrumbs();
    }
    ?>
    </div>

    </div>
    </div>
    <?php
    }
    ?>
    <div id=”content” class=”site-content container clearfix”>
    <div id=”page-nosidebar” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>
    <?php
    while ( have_posts() ) : the_post();

    get_template_part( ‘template-parts/content’, ‘page’ );

    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;

    endwhile; // End of the loop.
    ?>
    </main><!– #main –>

    </div><!– #primary –>

    </div><!– #content –>
    <?php get_footer();

    CSS:

    /*** NO-SIDEBAR ***/
    @media screen and (min-width: 56.875em) {
    .page-nosidebar .content-area
    {
    float: left;
    margin-right: -100%;
    width: 100%;
    }
    }

    Are there error?

    thanks for the support.

    in reply to: Child-Theme – Page with slider #12278
    marcoluca1988
    Participant

    Thank you for the reply. I’m able to create a new template with right slider. Slider is created with another name because i want to use special widget for different page. My problem, now, is that slider don’t play like yours. I hava activate it with:

    <?php

    if ( function_exists(‘register_sidebar’) )
    register_sidebar( array(
    ‘name’ => ‘Staff Page Sidebar’,
    ‘id’ => ‘staff-page-sidebar’,
    ‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</aside>’,
    ‘before_title’ => ‘<h2 class=”widget-title”>’,
    ‘after_title’ => ‘</h2>’,
    ));

    add_action( ‘widgets_init’, ‘mercantile_widgets_init’ );

    Than i define in css:

    #staff-page-sidebar { position:relative; margin-left:70%; padding-left:15px; font-size: 9pt; color:#bbb;}
    #staff-page-sidebar h3, #staff-page-sidebar h2, {color:#fff; font-size: 12pt;}

    but my sidebar don’t go like yours. (Example: It is not configurated in correct size and there isn’t border or image are too large (using your AT post widget). Search widget or calendar go perfectly. Then i see that in tablet mode or cellular mode they don’t go down under articles. How i can fix it?

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)