Changes in Child CSS not working


Hi. I'm new to Beans and having trouble to get CSS in the style.css working. For now I dont want to use LESS. I downloaded the standard child theme and made some changes to the functions.php in the child theme. See here:

<?php

// Include Beans. Do not remove the line below.
require_once( get_template_directory() . '/lib/init.php' );

// Remove this action and callback function if you are not adding CSS in the style.css file.
add_action( 'wp_enqueue_scripts', 'beans_child_enqueue_assets' );

function beans_child_enqueue_assets() {

  wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css' );

}

// Remove the site title and site title tag.
beans_remove_action( 'beans_site_branding' );

// Modify the footer credit right text.
add_filter( 'beans_footer_credit_right_text_output', 'example_footer_credit_right_text' );

function example_footer_credit_right_text() {

 return '';

}

beans_remove_action( 'beans_header_partial_template' );

beans_remove_action( 'beans_footer_partial_template' );

beans_remove_action( 'beans_enqueue_uikit_components' );

// Remove offcanvas menu.
remove_theme_support( 'offcanvas-menu' );

beans_remove_action( 'beans_breadcrumb' );

beans_remove_action( 'beans_post_title' );

For example, I just want the text to get red. I insert following in the style.css:

p {
 color: red;
}

but nothing happend. Would be great if someone can help! Thanks...


I am new in Beans, too. But sometimes I have problems with cache, so in Chrome I have to go to the Menu on the right, More Tools, Clear browsing Data. I choose Cached images and Files and then select Clear Browsing data. Perhaps this can solve your problem, I hope.

Write a reply

Login or register to write a reply, it's free!