• Resolved ulricakrii

    (@ulmavi)


    Hi.

    I like the Hueman theme very much but I need to make it more suitable for me and the content I have on my old website. This means that I need to make the width of the site 1000px. In the theme option I only can go down to 1024px. I saw that I could change this in the theme-option.php file but when I make a copy of that file and make the changes it won’t work. I work with a child theme and every php-file I’ve made changes to I made a copy to my child theme. What am I doing wrong? Is it that It’s a copy with the exact text in it besides the small changes I made? What kind of text line should I have in the php-file if that is the case.

    Best Regards Ulrica

Viewing 5 replies - 1 through 5 (of 5 total)
  • Without seeing the site you can try this at the bottom of your childs style.css.

    body {
        max-width: 1000px;
        margin: 0 auto;  /*MAY NOT BE NEEDED*/
    }

    Hi,

    .container-inner { max-width: 1000px; }

    That is the value that the admin panel styling options changes.

    Thread Starter ulricakrii

    (@ulmavi)

    Hi again.

    That did not work.
    What does work is to change the container width from 1024 to 1000 in the “theme-options.php”. But when I copied that .php-file to my child theme and made the change it did not work. Is that .php-file a file I can’t copy so it works in my child theme? I don’t want to make that change every time I upgrade the theme.

    (Styling: Container Width ‘min_max_step’ => ‘1000,1600,1’)

    In functions.php, copy over the whole

    function alx_load() {
    
    }

    Function to your child theme’s functions.php. Then change this line in it:

    load_template( get_template_directory() . '/functions/theme-options.php' );

    To:

    load_template( get_stylesheet_directory() . '/functions/theme-options.php' );

    And it will load that file from the child theme instead.

    Thread Starter ulricakrii

    (@ulmavi)

    Something is wrong when I copied the text you said. Something got broken. I got a lot of warnings and errors.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing the width of the site’ is closed to new replies.