can't change the post URL when use child theme

  • armweb

    #4874

    Thank the author, I like the theme very much!

    I use child theme for graphene, graphene version :1.7.3, wordpress 3.3.2

    If there is functions.php under child theme, I can’t change the post URL when create a new post(I can’t see the change post URL option), but can change the post URL when edit a old post.

    If there is not functions.php under child theme, I can change the post URL when create a new post.

    style.css:

    /*
    Theme Name: graphene Child
    Description: copy from graphene
    Author: xxx
    Template: graphene
    */
    @import url("../graphene/style.css");

    .featured_slider #slider_root {
    width: 98%;
    }

    functions.php:

    <?php
    /*
    Functions
    Author: xxx
    Establishes the core theme functions.
    Copyright (C) 2011 xxx
    Version 1.0
    */

    ?>

    Please help, thanks very much!

    Admin

    Syahir Hakim

    #29604

    You don’t actually need the functions.php file if that’s all you have in it. In any case, I can’t think of any reason why the mere presence of the functions.php file would cause the issue you described. Check to see if there’s any whitespace outside of the <?php and ?> block.

    armweb

    #29605

    Thank you!

    There are more line outside <?php ?>.

    It works well now

    Admin

    Syahir Hakim

    #29606
    Quote:
    In this case, I will add the functions to the functions.php of graphene.

    I would advise against that, since the changes you make there will be lost when you update the theme.

    Quote:
    If there is functions.php under child theme, I can’t change the post URL when create a new post(I can’t see the change post URL option), but can change the post URL when edit a old post.

    I just tried this with a child theme that contains functions.php file, and it’s working fine on my end. You mean the URL right under the post title field. right?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.