• Resolved LesTrouvailles

    (@lestrouvailles)


    Hi,

    My address: https://www.lestrouvaillesdejosephine.fr

    I have created a child theme and I am using this code in style.css in order to reduce the sidebar width from 300 to 250:

    @import url("../sugar-and-spice/style.css");
    
    /* 02. Page Layout
    ================================================== */
    #primary {
        width: 650px;
        float: left;
    }
    .full-width #primary {
        width: 100%;
        float: none;
    }
    
    #sidebar {
        width: 250px;
        float: right;
    }


    Works fine on my PC, but not on smartphone nor mac book, the site is not responsive anymore… any idea?

    Moreover I am changing the colors and the ruban pictures adding a function.php file containing (your function.php are not replaceable, so I use a trick find in the web)

    /**
     * Output color scheme CSS in header
     */
    function get_childTheme_url() {
        return dirname( get_bloginfo('stylesheet_url') );
    }
    function child_sugarspice_color_scheme() {
    
            $color = array(
    [...]
                'emerald'   => '#e0c775', /* doré custom */
    [...]
                'red'       => '#d54d63', /* Rose betsy custom */
    [...]
            );
    
    [...]
    
            $output .= '#nav-wrapper .ribbon-left, #nav-wrapper .ribbon-right { background-image: url("'.<strong>get_childTheme_url()</strong>.'/images/ribbon-'.of_get_option('accent_color','peach').'.png"); }';
    
    [...]
    
    }   
    
    // Removes thematic_blogtitle from the thematic_header phase
    function remove_sugarspice_color_scheme() {
        remove_action('wp_head','sugarspice_color_scheme');
    }
    // Call 'remove_thematic_actions' during WP initialization
    add_action('init','remove_sugarspice_color_scheme');
    
    // Add our custom function to the 'thematic_header' phase
    add_action('wp_head','child_sugarspice_color_scheme', 3);

    I don’t know if it can trouble the css.

    Thanks for your help.

    Ludovic

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author alex27

    (@alex27)

    Hello!

    If you look into style.css, you’ll find whole section responsible for responsive behavior, it starts with:

    /* 09. Responsive
    ================================================== */

    You’ll also see that for tablet and smaller devices there’s:
    #sidebar { float: none; width: 100%; }
    Essentially you’re overriding this rules in your child theme. So this part would have to be copied over.

    Thread Starter LesTrouvailles

    (@lestrouvailles)

    Great, works fine copying all chapter 9 in my custom CSS.

    Thanks a lot.

    Ludovic

    Hi LesTrouvailles! Love your blog! How did you make it happen that the social media links open in a new window?

    Merci!

    Theme Author alex27

    (@alex27)

    This was added in the latest theme update actually.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing column size, not responsive anymore’ is closed to new replies.