Tagged: single post
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
February 26, 2019 at 11:24 am #1071712
Hi.
My client wants to add a second sidebar on the right of the content. Just as the new layout linked in the private content.
I try to edit the single.php but when I try to add
<?php get_sidebar(‘Sidebar Servicios’) ?>
under and over the <main></main> tags. The second sidebar doesn’t is displayed and the layout is broken.
Can you help us?
- This topic was modified 5 years, 9 months ago by wancora.
February 26, 2019 at 7:29 pm #1071922Hi we are fixed it with this code
PHP<div class='container double-sidebar template-blog template-single-blog '> <?php $avia_config['currently_viewing'] = "blog"; //get the sidebar get_sidebar(); ?> <main class='content units <?php avia_layout_class( 'content' ); ?> <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and that will be used instead. * */ get_template_part( 'includes/loop', 'index' ); //show related posts based on tags if there are any get_template_part( 'includes/related-posts'); //wordpress function that loads the comments template "comments.php" comments_template(); ?> <!--end content--> </main> <aside class="sidebar sidebar_right"> <?php //get the sidebar dynamic_sidebar( 'Sidebar-Servicios' ); ?> </aside> </div><!--end container-->
CSS
@media only screen and (min-width: 767px){ #top #main .double-sidebar .sidebar_right{ width: 16.6%; float:right; } #top #main .double-sidebar .sidebar_left{ width: 16.6%; float:left; } #top #main .double-sidebar.container{ box-sizing: border-box; } #top #main .double-sidebar.container .av-content-small.units{ width: 65.6%; float:left; } #top #main .double-sidebar .content{ padding-right: 0.5%; padding-left: 0.5%; } }
March 1, 2019 at 8:19 am #1072956 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.