Best Premium and Free WordPress Themes › Forums › Mercantile › Child-Theme – Page with slider
Tagged: Mercantile
- This topic has 7 replies, 2 voices, and was last updated 7 years, 11 months ago by acmethemes.
-
AuthorPosts
-
December 27, 2016 at 1:20 pm #11974marcoluca1988Participant
Hi, I’m Marco. My site in in local. I would like to know how we create a new template page with a slider on the right. In your theme is possible to insert slider in all site but it’s good if we have a template page to choise. Thanks a lot.
Marco
December 27, 2016 at 2:47 pm #11975acmethemesKeymasterHello Marco,
Thank you so much for using our theme Mercantile. If you want to make a new page with slider on the the right, please try once by Page Builder Plugin. Or you can create a separate page template but you need to familiar with the codes to create a template. Please have a look in the codex for more details.
If you have any query, feel free to ask.Regards
Acme SupportsJanuary 3, 2017 at 2:21 pm #12278marcoluca1988ParticipantThank 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
January 3, 2017 at 6:40 pm #12295acmethemesKeymasterHello marcoluca1988,
It’s really complex to share anything related to this issues. You are working on local server and how we can guide you. Better to use google for the help.
If you move your site on live server, we can check the issues and help you on that.Thank you
January 4, 2017 at 11:48 pm #12343marcoluca1988ParticipantThank 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
sumand not:
Lerem
Ipsumi 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.
January 5, 2017 at 4:54 am #12347acmethemesKeymasterWe think that you missed the
div
structure of HTML. So, if you are not familiar with codes, better to hire for the customization.
It’s really complex to understand your code here.Thank You
January 9, 2017 at 9:07 pm #12532marcoluca1988ParticipantThanks I fix it!
January 10, 2017 at 5:16 am #12549acmethemesKeymasterHello marcoluca1988,
Nice to know that your problem is solved.Regards
-
AuthorPosts
- The topic ‘Child-Theme – Page with slider’ is closed to new replies.