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*

home width decrease after use child theme

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #60286
    longruibin
    Participant

    Hi,
    After i add child theme to newscard, the home page width decrease.
    the child theme code is created by using CHILD THEME GENERATOR plugin as following”
    /
    function newscard_child_theme_enqueue_child_styles() {
    $parent_style = ‘parent-style’;
    wp_enqueue_style($parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style(
    ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’) );
    }
    add_action( ‘wp_enqueue_scripts’, ‘newscard_child_theme_enqueue_child_styles’ );
    /
    currently the whole site no plugin is active as I wrote this problem.
    http://www.chartingyourtrading.com
    please help.

    ray

    #60287
    longruibin
    Participant

    The AD banner also disappear after active child theme.

    #60325

    Hi Longruibin,

    Can you please provide us your child theme via email.

    Thank you!

    #67345
    Michel STOUPAK
    Participant

    Hi, I have the same problem : the home page width decrease with the child theme created by using CHILD THEME GENERATOR plugin.
    The website concerned : http://newsimages.fr

    Please help.
    Thank you
    Michel

    #67348
    Michel STOUPAK
    Participant

    Hi, I solved the problem using the custom CSS in the frontpage layout that you gave to another user in this forum.

    It’s ok for me.

    #67350
    Michel STOUPAK
    Participant

    But now, which CSS should I add to have the same page and heading width in articles and pages than in frontpage (see http://newsimages.fr)
    Sorry for bad English, and thank you for your reply.

    #67355
    Michel STOUPAK
    Participant

    Finally, I tried several CSS without success.

    My exact need is the following.

    – I would like the same homepage width as on this page : https://www.themehorse.com/preview/newscard-sport/
    – I would like to have the same width as the homepage on all posts and pages.

    Thank for your help.

    http://newsimages.fr/

    #67552

    Hi @michel-stoupak,

    To make the Same width as the Homepage, Please go to the Appearance > Customizer > Additional CSS and paste below custom css code:

    @media (min-width: 1600px) {
    	.post-template-default .site-content .container {
    		max-width: 1540px;
    	}
    }
    @media (min-width: 1800px) {
    	.post-template-default .site-content .container {
    		max-width: 1740px;
    	}
    }

    Thanks

    #68260
    Michel STOUPAK
    Participant

    Hi,

    it’s OK now with this css code.

    Thanks.

    #68270

    Welcome anytime @michel-stoupak

    Thank you!

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