Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter yavert

    (@yavert)

    Hi Kathryn,
    Yes, that was it! Thanks a lot! I think I placed it everywhere but where it should be LOL
    It was driving me crazy. I just put aome extra divider and sorted!

    Thanks!

    Thread Starter yavert

    (@yavert)

    I guess I need to create a specific div for the sidebar?
    I tried to put <?php get_sidebar(‘sidebar-1’); ?> just after the lines you told me, but the page lost all its sizing, it only had the width of the sidebar.

    Thread Starter yavert

    (@yavert)

    Hi Kathryn,

    My sidebar and posts “width” are very tiny, so I guess it should be fine regarding maximum width. However, for the right place for the sidebar: do you mean it should be in the content php file, under the content div? Or in the header php file, in the content div?

    Thanks.

    Thread Starter yavert

    (@yavert)

    I managed to have the sidebar back, but i’m still unable to find out how to avoid the huge space afterwards until the post begins. The sidebar should start at the same height as the posts, and I can´t figure out how.

    Thanks

    Thread Starter yavert

    (@yavert)

    Hi,

    Sorry for that, the syntax error is now fixed.
    I´ve been messing around more than I expected, trying to change the sidebar, and now it´s completely gone!

    Here´s what I have in the header:

    <div id ='widget-area'>
    <div class='widget'>
    <?php if ( is_active_sidebar( 'sidebar-1' ) ) {
    				get_sidebar();
    			} ?>
    </div>
    
    Where:
    
    .widget-area {
    width:150px;
    margin-left:15px;
    margin-right:15px;
    height:300px;
    background-color:#d5d6d7;
    clear:both;
    background:white;
    
    }
    
    .widget {
    	float:right;
    	align:right;
    }
    
    I made sure the content of my posts wasn´t a problem for the sidebar, the width is fixed to 400px...
    
    .page-content,
    .entry-content,
    .entry-summary {
    	color:black;
    	font-size: 14px;
    	width:400px;
    	font-size: 1.4rem;
    	margin: 1.5em 0 0;
    
    }

    What am I doing wrong? Many thanks!

    [Moderator’s note: I put code tags around your code – please use them when posting code in the future.]

    Thread Starter yavert

    (@yavert)

    I´ll do so.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)