• When I created a child theme for writr and uploaded it, a small glitch appears in the menu bar. Basically, there is a space at the top of the sidebar menu as if there was an item there but there isn’t. There are also a few little gray lines poking out from behind the menu bar by the extra space. These issues were not there when I was using the parent theme, and my child theme has nothing in it that I can see causing that. Does anyone know how these issues could have arisen or how I could get rid of them?

    Here’s the site I’m working on: rexanachurch.com

    Thanks!!

Viewing 7 replies - 16 through 22 (of 22 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Did you go back into the Customizer’s Theme Options panel and select Wider Content Area? I just tested that checkbox with the latest version of the theme and it seems to be working on my test site running a Writr child theme.

    Thread Starter rexana

    (@rexana)

    Yes it’s checked. But maybe it’s because I still have my functions.php is as follows:

    <?php
    
    function writr_child_enqueue_child() {
    wp_register_style( 'writr', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'writr-child', get_stylesheet_uri(), array( 'writr' ) );
    }
    add_action( 'wp_enqueue_scripts', 'writr_child_enqueue_child', 11 );
    
    ?>

    I am too afraid to change it now after what happened before haha

    Moderator Kathryn Presner

    (@zoonini)

    ?? I understand!

    Can you try removing the ,11 priority from your function?

    So instead of:

    add_action( 'wp_enqueue_scripts', 'writr_child_enqueue_child', 11 );

    the line would be

    add_action( 'wp_enqueue_scripts', 'writr_child_enqueue_child' );

    Did your host help you at all set up an FTP program? It’s a really good thing to know how to be able to use when yous self-host a WordPress site, and it’s not hard to use. ??

    Thread Starter rexana

    (@rexana)

    Kathryn,

    I changed that line and it didn’t hurt anything but didn’t fix the wideness either.

    My host walked me through reuploading the file through cPanel. It wasn’t actually hard once I knew where to go. I was just intimidated by cPanel at first because I’m new to this.

    Moderator Kathryn Presner

    (@zoonini)

    Did you get this sorted out? I see the wider content area on your site now.

    I also tested this with the latest version of Writr and a child theme, with this in my functions.php, and the wider content area works for me:

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }

    Hi, is there chance to change your copyright? I need to make different format of copyright, e.g.:

    “(c) 2015 Karel Zitny
    Writr theme by WordPress.com”

    Thank you

    Moderator Kathryn Presner

    (@zoonini)

    Sigognac – please start a new thread for your separate question, with a link to your site. Thanks!

    https://www.ads-software.com/support/theme/writr

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Glitch in Switching to Child Theme’ is closed to new replies.