- Acme Themes

Best Premium and Free WordPress Themes Forums Mercantile Child-Theme – Page with slider 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.