• Hello,

    first time using the theme oceanwp. I heard much about this theme. Now I saw it’s much different with other themes.

    It was already beginning with the child theme. Now in my project I think the child theme is installed correctly. If I do an extra css one happen always its only running if I do the css-construction use it about the css-box in the customizer its not running if I use the file css.style of the child theme. My question is now is anything wrong or is it normal thing? Thank you for an answer.

    greetings

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Sorry but didn’t get the exact query.

    Do you mean the CSS not working when you add it into the customizer? And working when adding into style.css file?

    Please share the code which you are adding and facing the issue.

    In addition, would you be so kind and go to Elementor > System Info and share the report with us so that we can take a look?

    Thread Starter alhai

    (@alhai)

    Hello, thanks for your answer!
    the customizer functions with the child theme but not the file style.css of the child theme. is with each code like that:
    .class {
    coding css
    }
    only it goes weell in the customizer but not in the file “style.css”

    to bind the file “style.css” here is the code in the function.php of the the child theme:

    function oceanwp_child_enqueue_parent_style() {

    // Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update the 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’ );`

    ——————————————–

    greetings Alfons from Germany

    Hello,

    Thank you so much for providing the code and details.
    Please try to add the parent classes in your custom CSS to override the existing CSS codes.
    Or you can also try the !important tag and check.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘own css with oceanwp’ is closed to new replies.