WordPress.org

Ready to get started?Download WordPress

Forums

Hueman
[resolved] Changing the width of the site (6 posts)

  1. Ulmavi
    Member
    Posted 7 months ago #

    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

  2. batharoy
    Member
    Posted 7 months ago #

    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*/
    }
  3. Alexander Agnarson
    Member
    Theme Author

    Posted 7 months ago #

    Hi,

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

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

  4. Ulmavi
    Member
    Posted 7 months ago #

    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')

  5. Alexander Agnarson
    Member
    Theme Author

    Posted 7 months ago #

    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.

  6. Ulmavi
    Member
    Posted 7 months ago #

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

Reply

You must log in to post.

About this Theme

About this Topic

Tags