badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Fixed width

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #60735
    staniole
    Participant

    I’m using Newscard (Free edition), a perfect theme for my use. Is it possible to change the width to a fixed size?
    Thanks.

    //Staniole Olsen

    #60783

    Hi Staniole,

    Could you please clarify which width are you talking about?

    Thank you!

    #60809
    staniole
    Participant

    I think it could be a width of 1240px.
    Thanks.

    //Staniole Olsen

    #60825

    Hello Staniole,

    Please add the below custom CSS code in Appearance > Customize > Additional CSS to set the width to 1240px.

    @media (min-width: 1200px) {
    	.container,
    	.post-template-default .site-content .container,
    	.page-template-default:not(.woocommerce) .site-content .container{
    		max-width: 1240px;
    	}
    	.post-boxed.inlined .post-img-wrap {
    		height: 80px;
    		width: 80px;
    	}
    	.newscard-widget-horizontal-vertical-posts .post-boxed.main-post .post-img-wrap {
    		height: 234px;
    	}
    	.col-xxl-4 {
    		-ms-flex: 0 0 50%;
    		flex: 0 0 50%;
    		max-width: 50%;
    	}
    	.entry-content p {
    		margin-bottom: 15px;
    	}
    	.featured-section .post-block .entry-header,
    	.featured-section .two-column-featured-section .post-block .entry-header {
    		padding: 10px 10px 0;
    	}
    	.navbar-head.navbar-bg-set {
    		padding-top: 30px;
    		padding-bottom: 30px;
    	}
    	.main-navigation a,
    	.search-toggle {
    		padding: 15px;
    	}
    	.main-navigation > ul > li.menu-item-has-children > a,
    	.main-navigation > ul > li.page_item_has_children > a {
    		padding-right: 32px;
    	}
    	.main-navigation > ul > li.menu-item-has-children > a:after,
    	.main-navigation > ul > li.page_item_has_children > a:after {
    		right: 15px;
    	}
    }

    Thank you!

    #60852
    staniole
    Participant

    Worked like a charm, thank you. Case can be closed.

    #60854
    staniole
    Participant

    Is was a little bit to quick to close this case – it worked like a charm on the frontpage, but going to a post or a page, the width is more than 1240px, I think maybe it is the featured picture (post) and the content (page), but I don’t know. What to do?
    Thanks.

    //Staniole Olsen

    #60862

    Hello @staniole

    We have edited the above code fixing it on single post and page.
    Please try using the above update code.

    Thank you!

    #60868
    staniole
    Participant

    Now it’s working like a charm all over, thank you very much.
    The case can now be closed :o)

    #60909

    Welcome anytime @staniole.

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