• Resolved ricmetal

    (@ricmetal)


    so, hey

    i downloaded and installed the OceanWP Child Theme from github, activated it, using it.

    where do i change the css for the child though? should it work through the customizer?

    cause fonts aren’t changing so well.

    for instance, going into typography > body and changing font size does nothing to my website.

    functions in child theme is:

    function oceanwp_child_enqueue_parent_style() {
    	// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
    	$theme   = wp_get_theme( 'OceanWP' );
    	$version = $theme->get( 'Version' );
    	// Load the stylesheet
    	wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'oceanwp-style' ), $version );
    	
    }
    add_action( 'wp_enqueue_scripts', 'oceanwp_child_enqueue_parent_style' );

    stylesheet in child theme is empty, apart from comments.

    when opening the dev panel in chrome and seeing the body text’s css, it shows the text i added in the customizer, but striked out. it says the css used is this
    mysite.com/wp-content/uploads/oceanwp/custom-style.css

    any idea whats happening?

    • This topic was modified 6 years, 6 months ago by ricmetal.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, child theme inherits the parent theme stylesheet and function. All the customizer option will also work for the child theme. Please reactivate the child theme. Hope it will fix the issue.

    Thread Starter ricmetal

    (@ricmetal)

    edit: ah, it’s has nothing to do with OceanWP i think. Styling Options Location was set to Custom file instead of WP head.

    thanks!


    hi,
    reactivating didn’t fix it, unfortunately. text size of the website did change when i activated the parent OceanWP theme, but went back to smaller size (8 or 9px!) when reactivating the OWP Child.

    • This reply was modified 6 years, 6 months ago by ricmetal.
    • This reply was modified 6 years, 6 months ago by ricmetal.
    • This reply was modified 6 years, 6 months ago by ricmetal.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fonts and Childs’ is closed to new replies.