• Resolved yuenmb

    (@yuenmb)


    I am a learner of WordPress child theme. Recently I like to add child theme for the parent theme, 2012. I followed the example in the WordPress, created a twentytwelve-child under wp-content/theme/ and add an empty style.css, but no functions.php, just for testing. After I activated the child theme, I lost the background images and othesr, and the widget is back to the left side instead of right side, etc. FYI, I used static page as my homepage. My website url is bill802.net. What is the cause of the problem? I added the child theme after I have configured some widgets, and added some plugins. Any advise is welcome.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter yuenmb

    (@yuenmb)

    I found there is also an ie.css in the theme. So in addition to the style.css, I should add this into the functions.php:

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘twentytwelve-ie’, get_template_directory_uri() . ‘/css/ie.css’, array( ‘twentytwelve-style’ ), ‘20121010’ );
    $wp_styles->add_data( ‘twentytwelve-ie’, ‘conditional’, ‘lt IE 9’ );

    }

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }

    Does the above statement work?

    Thread Starter yuenmb

    (@yuenmb)

    I have some page with title in Chinese characters. I created them and preview with no problem. However, after I published I view it again, I get error message:

    Bad Request
    Your browser sent a request that this server could not understand.
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

    My theme is Magazine Basic. I have a child theme but with nothing in it.

    it showed
    https://www.yesmlv.com/%E4%BF%9D%E9%9A%AA/
    when I copied here.

    However when I saw it, it is in Chinese Character clearly
    https://www.yesmlv.com/保險/

    Please let me know why the code screwed up after published and posted here. Thanks.

    Thread Starter yuenmb

    (@yuenmb)

    ipage does not support Chinese Characters. After changing all Chinese characters into English characters. It worked.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘child theme issue’ is closed to new replies.