Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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.
    #1071922

    Hi 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%;
        }
    }
    #1072956

    Hi wancora,

    Great, I’m glad you came up with a solution and thanks for sharing. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.