• So I did the child theme as recommended. Named it theme-child (where theme is the parent theme name). When I customize it looks like I want it to, so far. When I am in wordpress dashboard and do page preview it has none of my modifications I did in the customize screen of my child theme. When I publish it… same thing. None of my menu changes appear it shows only the two pages published in the top menu. And not in the correct order for my customizations.

    I created functions.php like the wordpress codex stated.

    Maybe I am missing something? Can anyone tell me “exactly” how to set this up correctly? I am really new to this.

Viewing 15 replies - 1 through 15 (of 37 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please provide a link to your site. Thanks.

    Thread Starter khit

    (@khittner)

    The site isn’t published except one or two pages.
    https://onlinedateshare.com/wordpress/faq/

    I have tried multiple themes and all the same result. Not pulling in my customizations (functionality or appearance) made in my child theme.

    here is the functions.php:

    
    <?php
    add_action( 'wp_enqueue_scripts', 'donovan_child_enqueue_styles' );
    function donovan_child_enqueue_styles() {
     
        $parent_style = 'donovan-style'; // This is 'donovan-style' for the Twenty Seventeen theme.
     
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'donovan-child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style ),
            wp_get_theme()->get('1.0')
        );
    }
    ?>
    
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Your child theme stylesheet is loading, twice!. You don’t need to explictly enqueue it.

    See https://i.imgur.com/crWMluu.png

    Also, you child theme has no styles! This is the whole of your style.css file:

    /*
    Theme Name: Donovan Child
    Template: donovan
    Author: Child Theme Configurator
    Description: My Donovan Child Theme
    Version: 1.0.1536082930
    Updated: 2018-09-04 11:42:10
    
    */
    
    Thread Starter khit

    (@khittner)

    so when I edit in the “customize” of my child theme where are those edits going?? When I click on it in wordpress dashboard it takes me to my saved changes in the child theme editor. It shows the menu bar like I want it, etc.

    how do I fix the child theme functionality not overriding the parent theme?

    I think you looked at it before I reverted what that child theme configurator did. That should all be gone now. Would you please look, again?

    Please forgive my lack of knowledge. Very new to this. I really appreciate your assistance.

    Thread Starter khit

    (@khittner)

    Never mind. I have deleted everything. thanks for the assistance. I just need to figure out why my child theme is not overriding my parent theme in both functionality and appearance with what I have done in my customization screen in wordpress dashboard of with child theme activated. This has been an issue with every theme I have tried to use.
    I will start a new thread and request assistance to dumb it down for me.

    Thread Starter khit

    (@khittner)

    I have come back to this topic, per your request, Mr. Stern.

    What is the point of using the child theme customize if it doesn’t load any of the saved portions?? Where do those saved changes go?? How do I get them to override the parent??

    Every bit of code I put in was taken from the wordpress codex instructions. I even copied and pasted only substituting child and parent theme names. You are telling me not to do this. Please explain further answering the questions I have asked.

    thanks for your assistance

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    CSS entered via the customizer is stored for the current theme in the database. It’s inserted inline on the page after all queued stylesheets are loaded. But if you’re creating a child theme, use the child’s style.css to enter CSS that overrides the parent.

    Maybe an example will help. This is a pretty simple child of twentyseventeen.

    https://github.com/sterndata/sds_2017

    Thread Starter khit

    (@khittner)

    So what you are telling me is….

    Don’t use the customize link with your child theme activated and save as it does nothing.
    To include the functions when you make your menu, etc. Everything must be manually input into the functions.php and style.css. Again, what is the point of the customize link in your child theme? I thought WordPress was created to make things easier.

    So even if I purchase the premium theme(s) that are somewhat customizable… I still need to put everything that the premium does not do – manually in the child theme’s functions.php and style.css, as it is recommended to always use a child theme so that it is not affected by updates?? And not use the customize link at all.

    thank you for your assistance

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    >>> Don’t use the customize link with your child theme activated and save as it does nothing.<<

    No, I did not say that. I can use the customizer with my child theme. I don’t see the point, as I created a child theme for the purposes of customization!

    >> To include the functions when you make your menu, etc. Everything must be manually input into the functions.php and style.css.<<

    No, I did not say that, either. You’d only put in functions.php things that modify how the site works when your child theme is loaded.

    >> [use] child theme so that it is not affected by update <<

    Yup, I wanted something very close to twentyseventeen and I didn’t want my changes to get lost when that theme updates.

    Thread Starter khit

    (@khittner)

    so again… In my child theme I created my main menu. Saved it. In the customize link. When I publish pages the menu is not there. Do I need to manually put the menu code in the functions.php in my child theme for changes to stick. If I update child theme in customize from wordpress dashboard the changes do not show. Basically, as it sits now my customize is useless to me. Nothing changes.

    Thread Starter khit

    (@khittner)

    Even the customize options available without requiring code.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Check APPEARANCE->MENUS and make sure you assigned the new menu (or modified one) to one of the theme’s menu locations.

    Thread Starter khit

    (@khittner)

    ok. So I have to build the menu structure in the APPEARANCE->MENUS and not in the customize link. Again, what is the point of the customize link? That is a terrible choice and very cumbersome instead of using the customize. Even if I assign same name of menu bar it does not import must rebuild without visual. What is the point of the customize link????

    Thread Starter khit

    (@khittner)

    And what about changing the available color(s), etc?? where do I do that?

    And my sidebar under APPEARANCE>WIDGETS does not show any of my widgests even though I can see them in this menu selection???

    Thread Starter khit

    (@khittner)

    and in the APPEARANCE>MENUS… even when I search my pages do not show up. just the two pages already posted.

Viewing 15 replies - 1 through 15 (of 37 total)
  • The topic ‘child theme preview and page preview in wordpress not the same’ is closed to new replies.